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