annotate gcc/c/c-lang.h @ 126:5d30d517ebed

fix example
author mir3636
date Sun, 08 Apr 2018 20:55:21 +0900
parents 04ced10e8804
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Definitions for C language specific types.
kono
parents:
diff changeset
2 Copyright (C) 2009-2017 Free Software Foundation, Inc.
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 This file is part of GCC.
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 GCC is free software; you can redistribute it and/or modify it under
kono
parents:
diff changeset
7 the terms of the GNU General Public License as published by the Free
kono
parents:
diff changeset
8 Software Foundation; either version 3, or (at your option) any later
kono
parents:
diff changeset
9 version.
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
kono
parents:
diff changeset
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
kono
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
kono
parents:
diff changeset
14 for more details.
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
17 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
18 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 #ifndef GCC_C_LANG_H
kono
parents:
diff changeset
21 #define GCC_C_LANG_H
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 #include "c-family/c-common.h"
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 /* In a RECORD_TYPE, a sorted array of the fields of the type, not a
kono
parents:
diff changeset
26 tree for size reasons. */
kono
parents:
diff changeset
27 struct GTY(()) sorted_fields_type {
kono
parents:
diff changeset
28 int len;
kono
parents:
diff changeset
29 tree GTY((length ("%h.len"))) elts[1];
kono
parents:
diff changeset
30 };
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 struct GTY(()) lang_type {
kono
parents:
diff changeset
33 /* In a RECORD_TYPE, a sorted array of the fields of the type. */
kono
parents:
diff changeset
34 struct sorted_fields_type * GTY ((reorder ("resort_sorted_fields"))) s;
kono
parents:
diff changeset
35 /* In an ENUMERAL_TYPE, the min and max values. */
kono
parents:
diff changeset
36 tree enum_min;
kono
parents:
diff changeset
37 tree enum_max;
kono
parents:
diff changeset
38 /* In a RECORD_TYPE, information specific to Objective-C, such
kono
parents:
diff changeset
39 as a list of adopted protocols or a pointer to a corresponding
kono
parents:
diff changeset
40 @interface. See objc/objc-act.h for details. */
kono
parents:
diff changeset
41 tree objc_info;
kono
parents:
diff changeset
42 };
kono
parents:
diff changeset
43
kono
parents:
diff changeset
44 struct GTY(()) lang_decl {
kono
parents:
diff changeset
45 char dummy;
kono
parents:
diff changeset
46 };
kono
parents:
diff changeset
47
kono
parents:
diff changeset
48 /* Save and restore the variables in this file and elsewhere
kono
parents:
diff changeset
49 that keep track of the progress of compilation of the current function.
kono
parents:
diff changeset
50 Used for nested functions. */
kono
parents:
diff changeset
51
kono
parents:
diff changeset
52 struct GTY(()) language_function {
kono
parents:
diff changeset
53 struct c_language_function base;
kono
parents:
diff changeset
54 tree x_break_label;
kono
parents:
diff changeset
55 tree x_cont_label;
kono
parents:
diff changeset
56 struct c_switch * GTY((skip)) x_switch_stack;
kono
parents:
diff changeset
57 struct c_arg_info * GTY((skip)) arg_info;
kono
parents:
diff changeset
58 int returns_value;
kono
parents:
diff changeset
59 int returns_null;
kono
parents:
diff changeset
60 int returns_abnormally;
kono
parents:
diff changeset
61 int warn_about_return_type;
kono
parents:
diff changeset
62 };
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64 /* If non-zero, implicit "omp declare target" attribute is added into the
kono
parents:
diff changeset
65 attribute lists. */
kono
parents:
diff changeset
66 extern GTY(()) int current_omp_declare_target_attribute;
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 #endif /* ! GCC_C_LANG_H */