]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c/c-lang.c
toplevel/
[thirdparty/gcc.git] / gcc / c / c-lang.c
CommitLineData
1acadd8b 1/* Language-specific hook definitions for C front end.
0b387d23 2 Copyright (C) 1991, 1995, 1997, 1998,
852f689e 3 1999, 2000, 2001, 2003, 2004, 2005, 2007, 2008, 2009, 2010
cfaf579d 4 Free Software Foundation, Inc.
1acadd8b 5
f12b58b3 6This file is part of GCC.
1acadd8b 7
f12b58b3 8GCC is free software; you can redistribute it and/or modify it under
9the terms of the GNU General Public License as published by the Free
8c4c00c1 10Software Foundation; either version 3, or (at your option) any later
f12b58b3 11version.
1acadd8b 12
f12b58b3 13GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14WARRANTY; without even the implied warranty of MERCHANTABILITY or
15FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16for more details.
1acadd8b 17
18You should have received a copy of the GNU General Public License
8c4c00c1 19along with GCC; see the file COPYING3. If not see
20<http://www.gnu.org/licenses/>. */
1acadd8b 21
22
23#include "config.h"
405711de 24#include "system.h"
805e22b2 25#include "coretypes.h"
26#include "tm.h"
1acadd8b 27#include "tree.h"
e41f0d80 28#include "c-tree.h"
7bedc3a0 29#include "c-family/c-common.h"
e8602e56 30#include "langhooks.h"
b0278d39 31#include "langhooks-def.h"
4ee9c684 32#include "tree-inline.h"
852f689e 33#include "diagnostic-core.h"
800b56f2 34#include "c-objc-common.h"
7bedc3a0 35#include "c-family/c-pragma.h"
bfdec0d1 36
c0f19401 37enum c_language_kind c_language = clk_c;
78c551ad 38
800b56f2 39/* Lang hooks common to C and ObjC are declared in c-objc-common.h;
40 consequently, there should be very few hooks below. */
50c7fc99 41
d19bd1f0 42#undef LANG_HOOKS_NAME
43#define LANG_HOOKS_NAME "GNU C"
e8602e56 44#undef LANG_HOOKS_INIT
79cf3ec1 45#define LANG_HOOKS_INIT c_objc_common_init
9b88d08d 46#undef LANG_HOOKS_INIT_TS
47#define LANG_HOOKS_INIT_TS c_common_init_ts
4ee9c684 48
800b56f2 49/* Each front end provides its own lang hook initializer. */
34e5cced 50struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
50c7fc99 51
1f3233d1 52#include "gtype-c.h"