OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [c-lang.c] - Blame information for rev 867

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* Language-specific hook definitions for C front end.
2
   Copyright (C) 1991, 1995, 1997, 1998,
3
   1999, 2000, 2001, 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
4
 
5
This file is part of GCC.
6
 
7
GCC is free software; you can redistribute it and/or modify it under
8
the terms of the GNU General Public License as published by the Free
9
Software Foundation; either version 3, or (at your option) any later
10
version.
11
 
12
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13
WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15
for more details.
16
 
17
You should have received a copy of the GNU General Public License
18
along with GCC; see the file COPYING3.  If not see
19
<http://www.gnu.org/licenses/>.  */
20
 
21
 
22
#include "config.h"
23
#include "system.h"
24
#include "coretypes.h"
25
#include "tm.h"
26
#include "tree.h"
27
#include "c-tree.h"
28
#include "c-common.h"
29
#include "ggc.h"
30
#include "langhooks.h"
31
#include "langhooks-def.h"
32
#include "tree-inline.h"
33
#include "diagnostic.h"
34
#include "c-objc-common.h"
35
#include "c-pragma.h"
36
 
37
enum c_language_kind c_language = clk_c;
38
 
39
/* Lang hooks common to C and ObjC are declared in c-objc-common.h;
40
   consequently, there should be very few hooks below.  */
41
 
42
#undef LANG_HOOKS_NAME
43
#define LANG_HOOKS_NAME "GNU C"
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.  */
48
const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
49
 
50
/* Tree code classes.  */
51
 
52
#define DEFTREECODE(SYM, NAME, TYPE, LENGTH) TYPE,
53
 
54
const enum tree_code_class tree_code_type[] = {
55
#include "tree.def"
56
  tcc_exceptional,
57
#include "c-common.def"
58
};
59
#undef DEFTREECODE
60
 
61
/* Table indexed by tree code giving number of expression
62
   operands beyond the fixed part of the node structure.
63
   Not used for types or decls.  */
64
 
65
#define DEFTREECODE(SYM, NAME, TYPE, LENGTH) LENGTH,
66
 
67
const unsigned char tree_code_length[] = {
68
#include "tree.def"
69
  0,
70
#include "c-common.def"
71
};
72
#undef DEFTREECODE
73
 
74
/* Names of tree components.
75
   Used for printing out the tree and error messages.  */
76
#define DEFTREECODE(SYM, NAME, TYPE, LEN) NAME,
77
 
78
const char *const tree_code_name[] = {
79
#include "tree.def"
80
  "@@dummy",
81
#include "c-common.def"
82
};
83
#undef DEFTREECODE
84
 
85
/* Final processing of file-scope data.  The Objective-C version of
86
   this function still does something.  */
87
void
88
finish_file (void)
89
{
90
}
91
 
92
#include "gtype-c.h"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.