]>
Commit | Line | Data |
---|---|---|
c0f940ef | 1 | /* Language-specific hook definitions for C front end. |
23a5b65a | 2 | Copyright (C) 1991-2014 Free Software Foundation, Inc. |
c0f940ef | 3 | |
1322177d | 4 | This file is part of GCC. |
c0f940ef | 5 | |
1322177d LB |
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 | |
9dcd6f09 | 8 | Software Foundation; either version 3, or (at your option) any later |
1322177d | 9 | version. |
c0f940ef | 10 | |
1322177d LB |
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. | |
c0f940ef RS |
15 | |
16 | You should have received a copy of the GNU General Public License | |
9dcd6f09 NC |
17 | along with GCC; see the file COPYING3. If not see |
18 | <http://www.gnu.org/licenses/>. */ | |
c0f940ef RS |
19 | |
20 | ||
21 | #include "config.h" | |
670ee920 | 22 | #include "system.h" |
4977bab6 ZW |
23 | #include "coretypes.h" |
24 | #include "tm.h" | |
c0f940ef | 25 | #include "tree.h" |
d8a2d370 | 26 | #include "fold-const.h" |
8f17b5c5 | 27 | #include "c-tree.h" |
39dabefd | 28 | #include "c-family/c-common.h" |
69dcadff | 29 | #include "langhooks.h" |
d23c55c2 | 30 | #include "langhooks-def.h" |
6de9cd9a | 31 | #include "tree-inline.h" |
1da2ed5f | 32 | #include "diagnostic-core.h" |
9a4d6480 | 33 | #include "c-objc-common.h" |
39dabefd | 34 | #include "c-family/c-pragma.h" |
4b780675 | 35 | |
37fa72e9 | 36 | enum c_language_kind c_language = clk_c; |
0abc6a6a | 37 | |
9a4d6480 ZL |
38 | /* Lang hooks common to C and ObjC are declared in c-objc-common.h; |
39 | consequently, there should be very few hooks below. */ | |
cd2a3ba2 | 40 | |
3ac88239 NB |
41 | #undef LANG_HOOKS_NAME |
42 | #define LANG_HOOKS_NAME "GNU C" | |
69dcadff | 43 | #undef LANG_HOOKS_INIT |
460bd0e3 | 44 | #define LANG_HOOKS_INIT c_objc_common_init |
81f653d6 NF |
45 | #undef LANG_HOOKS_INIT_TS |
46 | #define LANG_HOOKS_INIT_TS c_common_init_ts | |
6de9cd9a | 47 | |
9a4d6480 | 48 | /* Each front end provides its own lang hook initializer. */ |
4537ec0c | 49 | struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER; |
cd2a3ba2 | 50 | |
e2500fed | 51 | #include "gtype-c.h" |