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