Mercurial > hg > CbC > CbC_gcc
annotate gcc/coretypes.h @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | 77e2b8dfacca |
children | f6334be47118 |
rev | line source |
---|---|
0 | 1 /* GCC core type declarations. |
2 Copyright (C) 2002, 2004, 2007, 2008, 2009 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 Under Section 7 of GPL version 3, you are granted additional | |
17 permissions described in the GCC Runtime Library Exception, version | |
18 3.1, as published by the Free Software Foundation. | |
19 | |
20 You should have received a copy of the GNU General Public License and | |
21 a copy of the GCC Runtime Library Exception along with this program; | |
22 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see | |
23 <http://www.gnu.org/licenses/>. */ | |
24 | |
25 /* Provide forward declarations of core types which are referred to by | |
26 most of the compiler. This allows header files to use these types | |
27 (e.g. in function prototypes) without concern for whether the full | |
28 definitions are visible. Some other declarations that need to be | |
29 universally visible are here, too. | |
30 | |
31 In the context of tconfig.h, most of these have special definitions | |
32 which prevent them from being used except in further type | |
33 declarations. This is a kludge; the right thing is to avoid | |
34 including the "tm.h" header set in the context of tconfig.h, but | |
35 we're not there yet. */ | |
36 | |
37 #ifndef GCC_CORETYPES_H | |
38 #define GCC_CORETYPES_H | |
39 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
40 #ifndef GTY |
0 | 41 #define GTY(x) /* nothing - marker for gengtype */ |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
42 #endif |
0 | 43 |
44 #ifndef USED_FOR_TARGET | |
45 | |
46 struct bitmap_head_def; | |
47 typedef struct bitmap_head_def *bitmap; | |
48 typedef const struct bitmap_head_def *const_bitmap; | |
63
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
49 struct simple_bitmap_def; |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
50 typedef struct simple_bitmap_def *sbitmap; |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
51 typedef const struct simple_bitmap_def *const_sbitmap; |
0 | 52 struct rtx_def; |
53 typedef struct rtx_def *rtx; | |
54 typedef const struct rtx_def *const_rtx; | |
55 struct rtvec_def; | |
56 typedef struct rtvec_def *rtvec; | |
57 typedef const struct rtvec_def *const_rtvec; | |
58 union tree_node; | |
59 typedef union tree_node *tree; | |
60 union gimple_statement_d; | |
61 typedef union gimple_statement_d *gimple; | |
62 typedef const union tree_node *const_tree; | |
63 typedef const union gimple_statement_d *const_gimple; | |
64 union section; | |
65 typedef union section section; | |
66 struct cl_target_option; | |
67 struct cl_optimization; | |
68 struct gimple_seq_d; | |
69 typedef struct gimple_seq_d *gimple_seq; | |
70 typedef const struct gimple_seq_d *const_gimple_seq; | |
71 struct gimple_seq_node_d; | |
72 typedef struct gimple_seq_node_d *gimple_seq_node; | |
73 typedef const struct gimple_seq_node_d *const_gimple_seq_node; | |
74 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
75 /* Address space number for named address space support. */ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
76 typedef unsigned char addr_space_t; |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
77 |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
78 /* The value of addr_space_t that represents the generic address space. */ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
79 #define ADDR_SPACE_GENERIC 0 |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
80 #define ADDR_SPACE_GENERIC_P(AS) ((AS) == ADDR_SPACE_GENERIC) |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
81 |
0 | 82 /* The major intermediate representations of GCC. */ |
83 enum ir_type { | |
84 IR_GIMPLE, | |
85 IR_RTL_CFGRTL, | |
86 IR_RTL_CFGLAYOUT | |
87 }; | |
88 | |
89 /* Provide forward struct declaration so that we don't have to include | |
90 all of cpplib.h whenever a random prototype includes a pointer. | |
91 Note that the cpp_reader and cpp_token typedefs remain part of | |
92 cpplib.h. */ | |
93 | |
94 struct cpp_reader; | |
95 struct cpp_token; | |
96 | |
97 /* The thread-local storage model associated with a given VAR_DECL | |
98 or SYMBOL_REF. This isn't used much, but both trees and RTL refer | |
99 to it, so it's here. */ | |
100 enum tls_model { | |
101 TLS_MODEL_NONE, | |
102 TLS_MODEL_EMULATED, | |
103 TLS_MODEL_REAL, | |
104 TLS_MODEL_GLOBAL_DYNAMIC = TLS_MODEL_REAL, | |
105 TLS_MODEL_LOCAL_DYNAMIC, | |
106 TLS_MODEL_INITIAL_EXEC, | |
107 TLS_MODEL_LOCAL_EXEC | |
108 }; | |
109 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
110 struct edge_def; |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
111 typedef struct edge_def *edge; |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
112 typedef const struct edge_def *const_edge; |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
113 struct basic_block_def; |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
114 typedef struct basic_block_def *basic_block; |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
115 typedef const struct basic_block_def *const_basic_block; |
0 | 116 #else |
117 | |
118 struct _dont_use_rtx_here_; | |
119 struct _dont_use_rtvec_here_; | |
120 union _dont_use_tree_here_; | |
121 #define rtx struct _dont_use_rtx_here_ * | |
122 #define const_rtx struct _dont_use_rtx_here_ * | |
123 #define rtvec struct _dont_use_rtvec_here * | |
124 #define const_rtvec struct _dont_use_rtvec_here * | |
125 #define tree union _dont_use_tree_here_ * | |
126 #define const_tree union _dont_use_tree_here_ * | |
127 | |
128 #endif | |
129 | |
130 #endif /* coretypes.h */ | |
131 |