c-lang.c 1.52 KB
Newer Older
Richard Stallman committed
1
/* Language-specific hook definitions for C front end.
Jeff Law committed
2
   Copyright (C) 1991, 1995, 1997, 1998,
Joseph Myers committed
3
   1999, 2000, 2001, 2003, 2004, 2005, 2007, 2008, 2009, 2010
4
   Free Software Foundation, Inc.
Richard Stallman committed
5

6
This file is part of GCC.
Richard Stallman committed
7

8 9
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
10
Software Foundation; either version 3, or (at your option) any later
11
version.
Richard Stallman committed
12

13 14 15 16
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.
Richard Stallman committed
17 18

You should have received a copy of the GNU General Public License
19 20
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.  */
Richard Stallman committed
21 22 23


#include "config.h"
24
#include "system.h"
25 26
#include "coretypes.h"
#include "tm.h"
Richard Stallman committed
27
#include "tree.h"
28
#include "c-tree.h"
29
#include "c-family/c-common.h"
Alexandre Oliva committed
30
#include "langhooks.h"
Neil Booth committed
31
#include "langhooks-def.h"
32
#include "tree-inline.h"
Joseph Myers committed
33
#include "diagnostic-core.h"
34
#include "c-objc-common.h"
35
#include "c-family/c-pragma.h"
36

37
enum c_language_kind c_language = clk_c;
38

39 40
/* Lang hooks common to C and ObjC are declared in c-objc-common.h;
   consequently, there should be very few hooks below.  */
41

42 43
#undef LANG_HOOKS_NAME
#define LANG_HOOKS_NAME "GNU C"
Alexandre Oliva committed
44
#undef LANG_HOOKS_INIT
45
#define LANG_HOOKS_INIT c_objc_common_init
46

47
/* Each front end provides its own lang hook initializer.  */
Diego Novillo committed
48
struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
49

50
#include "gtype-c.h"