Import pre-release gcc-5.0 to new vendor branch
[dragonfly.git] / contrib / gcc-5.0 / gcc / c / c-lang.c
1 /* Language-specific hook definitions for C front end.
2    Copyright (C) 1991-2015 Free Software Foundation, Inc.
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
21 #include "config.h"
22 #include "system.h"
23 #include "coretypes.h"
24 #include "tm.h"
25 #include "hash-set.h"
26 #include "vec.h"
27 #include "symtab.h"
28 #include "input.h"
29 #include "alias.h"
30 #include "double-int.h"
31 #include "inchash.h"
32 #include "tree.h"
33 #include "c-tree.h"
34 #include "c-family/c-common.h"
35 #include "langhooks.h"
36 #include "langhooks-def.h"
37 #include "tree-inline.h"
38 #include "diagnostic-core.h"
39 #include "c-objc-common.h"
40 #include "c-family/c-pragma.h"
41
42 enum c_language_kind c_language = clk_c;
43
44 /* Lang hooks common to C and ObjC are declared in c-objc-common.h;
45    consequently, there should be very few hooks below.  */
46
47 #undef LANG_HOOKS_NAME
48 #define LANG_HOOKS_NAME "GNU C"
49 #undef LANG_HOOKS_INIT
50 #define LANG_HOOKS_INIT c_objc_common_init
51 #undef LANG_HOOKS_INIT_TS
52 #define LANG_HOOKS_INIT_TS c_common_init_ts
53
54 /* Each front end provides its own lang hook initializer.  */
55 struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
56
57 #include "gtype-c.h"