OSDN Git Service

* objc-act.c (objc_build_struct): New function.
[pf3gnuchains/gcc-fork.git] / gcc / objc / objc-act.h
1 /* Declarations for objc-act.c.
2    Copyright (C) 1990, 2000, 2001, 2002, 2003, 2004, 2005
3    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
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING.  If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.  */
21
22 #ifndef GCC_OBJC_ACT_H
23 #define GCC_OBJC_ACT_H
24
25 /* For enum gimplify_status */
26 #include "tree-gimple.h"
27
28 /*** Language hooks ***/
29
30 bool objc_init (void);
31 const char *objc_printable_name (tree, int);
32 tree objc_get_callee_fndecl (tree);
33 void objc_finish_file (void);
34 tree objc_fold_obj_type_ref (tree, tree);
35 enum gimplify_status objc_gimplify_expr (tree *, tree *, tree *);
36
37 /* NB: The remaining public functions are prototyped in c-common.h, for the
38    benefit of stub-objc.c and objc-act.c.  */
39
40 /* Objective-C structures */
41
42 #define CLASS_LANG_SLOT_ELTS            5
43 #define PROTOCOL_LANG_SLOT_ELTS         2
44 #define OBJC_INFO_SLOT_ELTS             2
45
46 /* KEYWORD_DECL */
47 #define KEYWORD_KEY_NAME(DECL) ((DECL)->decl.name)
48 #define KEYWORD_ARG_NAME(DECL) ((DECL)->decl.arguments)
49
50 /* INSTANCE_METHOD_DECL, CLASS_METHOD_DECL */
51 #define METHOD_SEL_NAME(DECL) ((DECL)->decl.name)
52 #define METHOD_SEL_ARGS(DECL) ((DECL)->decl.arguments)
53 #define METHOD_ADD_ARGS(DECL) ((DECL)->decl.result)
54 #define METHOD_ADD_ARGS_ELLIPSIS_P(DECL) ((DECL)->decl.lang_flag_0)
55 #define METHOD_DEFINITION(DECL) ((DECL)->decl.initial)
56 #define METHOD_ENCODING(DECL) ((DECL)->decl.context)
57
58 /* CLASS_INTERFACE_TYPE, CLASS_IMPLEMENTATION_TYPE,
59    CATEGORY_INTERFACE_TYPE, CATEGORY_IMPLEMENTATION_TYPE,
60    PROTOCOL_INTERFACE_TYPE */
61 #define CLASS_NAME(CLASS) ((CLASS)->type.name)
62 #define CLASS_SUPER_NAME(CLASS) (TYPE_CHECK (CLASS)->type.context)
63 #define CLASS_IVARS(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 0)
64 #define CLASS_RAW_IVARS(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 1)
65 #define CLASS_NST_METHODS(CLASS) ((CLASS)->type.minval)
66 #define CLASS_CLS_METHODS(CLASS) ((CLASS)->type.maxval)
67 #define CLASS_STATIC_TEMPLATE(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 2)
68 #define CLASS_CATEGORY_LIST(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 3)
69 #define CLASS_PROTOCOL_LIST(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 4)
70 #define PROTOCOL_NAME(CLASS) ((CLASS)->type.name)
71 #define PROTOCOL_LIST(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 0)
72 #define PROTOCOL_NST_METHODS(CLASS) ((CLASS)->type.minval)
73 #define PROTOCOL_CLS_METHODS(CLASS) ((CLASS)->type.maxval)
74 #define PROTOCOL_FORWARD_DECL(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 1)
75 #define PROTOCOL_DEFINED(CLASS) TREE_USED (CLASS)
76
77 /* ObjC-specific information pertaining to RECORD_TYPEs are stored in
78    the LANG_SPECIFIC structures, which may itself need allocating first.  */
79
80 /* The following three macros must be overridden (in objcp/objcp-decl.h)
81    for Objective-C++.  */
82 #define TYPE_OBJC_INFO(TYPE) TYPE_LANG_SPECIFIC (TYPE)->objc_info
83 #define SIZEOF_OBJC_TYPE_LANG_SPECIFIC sizeof (struct lang_type)
84 #define ALLOC_OBJC_TYPE_LANG_SPECIFIC(NODE)                             \
85   do {                                                                  \
86     TYPE_LANG_SPECIFIC (NODE) = GGC_CNEW (struct lang_type);            \
87   } while (0)
88
89 #define TYPE_HAS_OBJC_INFO(TYPE)                                \
90         (TYPE_LANG_SPECIFIC (TYPE) && TYPE_OBJC_INFO (TYPE))
91 #define TYPE_OBJC_INTERFACE(TYPE) TREE_VEC_ELT (TYPE_OBJC_INFO (TYPE), 0)
92 #define TYPE_OBJC_PROTOCOL_LIST(TYPE) TREE_VEC_ELT (TYPE_OBJC_INFO (TYPE), 1)
93
94
95 #define INIT_TYPE_OBJC_INFO(TYPE)                               \
96         do                                                      \
97           {                                                     \
98             if (!TYPE_LANG_SPECIFIC (TYPE))                     \
99               ALLOC_OBJC_TYPE_LANG_SPECIFIC(TYPE);              \
100             if (!TYPE_OBJC_INFO (TYPE))                         \
101               TYPE_OBJC_INFO (TYPE)                             \
102                 = make_tree_vec (OBJC_INFO_SLOT_ELTS);          \
103           }                                                     \
104         while (0)
105 #define DUP_TYPE_OBJC_INFO(DST, SRC)                            \
106         do                                                      \
107           {                                                     \
108             ALLOC_OBJC_TYPE_LANG_SPECIFIC(DST);                 \
109             if (TYPE_LANG_SPECIFIC (SRC))                       \
110               memcpy (TYPE_LANG_SPECIFIC (DST),                 \
111                       TYPE_LANG_SPECIFIC (SRC),                 \
112                       SIZEOF_OBJC_TYPE_LANG_SPECIFIC);          \
113             TYPE_OBJC_INFO (DST)                                \
114               = make_tree_vec (OBJC_INFO_SLOT_ELTS);            \
115           }                                                     \
116         while (0)
117
118 #define TYPED_OBJECT(TYPE)                                      \
119         (TREE_CODE (TYPE) == RECORD_TYPE                        \
120          && TYPE_HAS_OBJC_INFO (TYPE)                           \
121          && TYPE_OBJC_INTERFACE (TYPE))
122 #define OBJC_TYPE_NAME(TYPE) TYPE_NAME(TYPE)
123 #define OBJC_SET_TYPE_NAME(TYPE, NAME) (TYPE_NAME (TYPE) = NAME)
124
125 /* Define the Objective-C or Objective-C++ language-specific tree codes.  */
126
127 #define DEFTREECODE(SYM, NAME, TYPE, LENGTH) SYM,
128 enum objc_tree_code {
129 #if defined (GCC_CP_TREE_H)
130   LAST_BASE_TREE_CODE = LAST_CPLUS_TREE_CODE,
131 #else 
132 #if defined (GCC_C_TREE_H)
133   LAST_BASE_TREE_CODE = LAST_C_TREE_CODE,
134 #else
135   #error You must include <c-tree.h> or <cp/cp-tree.h> before <objc/objc-act.h>
136 #endif
137 #endif
138 #include "objc-tree.def"
139   LAST_OBJC_TREE_CODE
140 };
141 #undef DEFTREECODE
142
143 /* Hash tables to manage the global pool of method prototypes.  */
144
145 typedef struct hashed_entry     *hash;
146 typedef struct hashed_attribute *attr;
147
148 struct hashed_attribute GTY(())
149 {
150   attr next;
151   tree value;
152 };
153 struct hashed_entry GTY(())
154 {
155   attr list;
156   hash next;
157   tree key;
158 };
159
160 extern GTY ((length ("SIZEHASHTABLE"))) hash *nst_method_hash_list;
161 extern GTY ((length ("SIZEHASHTABLE"))) hash *cls_method_hash_list;
162
163 #define SIZEHASHTABLE           257
164
165 /* Objective-C/Objective-C++ @implementation list.  */
166
167 struct imp_entry GTY(())
168 {
169   struct imp_entry *next;
170   tree imp_context;
171   tree imp_template;
172   tree class_decl;              /* _OBJC_CLASS_<my_name>; */
173   tree meta_decl;               /* _OBJC_METACLASS_<my_name>; */
174   BOOL_BITFIELD has_cxx_cdtors : 1;
175 };
176
177 extern GTY(()) struct imp_entry *imp_list;
178 extern GTY(()) int imp_count;   /* `@implementation' */
179 extern GTY(()) int cat_count;   /* `@category' */
180
181 extern GTY(()) enum tree_code objc_inherit_code;
182 extern GTY(()) int objc_public_flag;
183
184 /* Objective-C/Objective-C++ global tree enumeration.  */
185
186 enum objc_tree_index
187 {
188     OCTI_STATIC_NST,
189     OCTI_STATIC_NST_DECL,
190     OCTI_SELF_ID,
191     OCTI_UCMD_ID,
192
193     OCTI_SELF_DECL,
194     OCTI_UMSG_DECL,
195     OCTI_UMSG_FAST_DECL,
196     OCTI_UMSG_SUPER_DECL,
197     OCTI_UMSG_STRET_DECL,
198     OCTI_UMSG_SUPER_STRET_DECL,
199     OCTI_GET_CLASS_DECL,
200     OCTI_GET_MCLASS_DECL,
201     OCTI_SUPER_TYPE,
202     OCTI_SEL_TYPE,
203     OCTI_ID_TYPE,
204     OCTI_CLS_TYPE,
205     OCTI_NST_TYPE,
206     OCTI_PROTO_TYPE,
207
208     OCTI_CLS_CHAIN,
209     OCTI_ALIAS_CHAIN,
210     OCTI_INTF_CHAIN,
211     OCTI_PROTO_CHAIN,
212     OCTI_IMPL_CHAIN,
213     OCTI_CLS_REF_CHAIN,
214     OCTI_SEL_REF_CHAIN,
215     OCTI_IVAR_CHAIN,
216     OCTI_CLS_NAMES_CHAIN,
217     OCTI_METH_VAR_NAMES_CHAIN,
218     OCTI_METH_VAR_TYPES_CHAIN,
219
220     OCTI_SYMBOLS_DECL,
221     OCTI_NST_VAR_DECL,
222     OCTI_CLS_VAR_DECL,
223     OCTI_NST_METH_DECL,
224     OCTI_CLS_METH_DECL,
225     OCTI_CLS_DECL,
226     OCTI_MCLS_DECL,
227     OCTI_SEL_TABLE_DECL,
228     OCTI_MODULES_DECL,
229     OCTI_GNU_INIT_DECL,
230
231     OCTI_INTF_CTX,
232     OCTI_IMPL_CTX,
233     OCTI_METH_CTX,
234     OCTI_IVAR_CTX,
235
236     OCTI_IMPL_TEMPL,
237     OCTI_CLS_TEMPL,
238     OCTI_CAT_TEMPL,
239     OCTI_UPRIV_REC,
240     OCTI_PROTO_TEMPL,
241     OCTI_SEL_TEMPL,
242     OCTI_UCLS_SUPER_REF,
243     OCTI_UUCLS_SUPER_REF,
244     OCTI_METH_TEMPL,
245     OCTI_IVAR_TEMPL,
246     OCTI_METH_LIST_TEMPL,
247     OCTI_METH_PROTO_LIST_TEMPL,
248     OCTI_IVAR_LIST_TEMPL,
249     OCTI_SYMTAB_TEMPL,
250     OCTI_MODULE_TEMPL,
251     OCTI_SUPER_TEMPL,
252     OCTI_OBJ_REF,
253     OCTI_CLS_REF,
254     OCTI_METH_PROTO_TEMPL,
255     OCTI_FUNCTION1_TEMPL,
256     OCTI_FUNCTION2_TEMPL,
257
258     OCTI_OBJ_ID,
259     OCTI_CLS_ID,
260     OCTI_ID_NAME,
261     OCTI_CLASS_NAME,
262     OCTI_CNST_STR_ID,
263     OCTI_CNST_STR_TYPE,
264     OCTI_CNST_STR_GLOB_ID,
265     OCTI_STRING_CLASS_DECL,
266     OCTI_SUPER_DECL,
267     OCTI_UMSG_NONNIL_DECL,
268     OCTI_UMSG_NONNIL_STRET_DECL,
269     OCTI_STORAGE_CLS,
270     OCTI_EXCEPTION_EXTRACT_DECL,
271     OCTI_EXCEPTION_TRY_ENTER_DECL,
272     OCTI_EXCEPTION_TRY_EXIT_DECL,
273     OCTI_EXCEPTION_MATCH_DECL,
274     OCTI_EXCEPTION_THROW_DECL,
275     OCTI_SYNC_ENTER_DECL,
276     OCTI_SYNC_EXIT_DECL,
277     OCTI_SETJMP_DECL,
278     OCTI_EXCDATA_TEMPL,
279     OCTI_STACK_EXCEPTION_DATA_DECL,
280     OCTI_LOCAL_EXCEPTION_DECL,
281     OCTI_RETHROW_EXCEPTION_DECL,
282     OCTI_EVAL_ONCE_DECL,
283     OCTI_CATCH_TYPE,
284     OCTI_EXECCLASS_DECL,
285
286     OCTI_ASSIGN_IVAR_DECL,
287     OCTI_ASSIGN_IVAR_FAST_DECL,
288     OCTI_ASSIGN_GLOBAL_DECL,
289     OCTI_ASSIGN_STRONGCAST_DECL,
290
291     OCTI_MAX
292 };
293
294 extern GTY(()) tree objc_global_trees[OCTI_MAX];
295
296 /* List of classes with list of their static instances.  */
297 #define objc_static_instances   objc_global_trees[OCTI_STATIC_NST]
298
299 /* The declaration of the array administrating the static instances.  */
300 #define static_instances_decl   objc_global_trees[OCTI_STATIC_NST_DECL]
301
302 /* Some commonly used instances of "identifier_node".  */
303
304 #define self_id                 objc_global_trees[OCTI_SELF_ID]
305 #define ucmd_id                 objc_global_trees[OCTI_UCMD_ID]
306
307 #define self_decl               objc_global_trees[OCTI_SELF_DECL]
308 #define umsg_decl               objc_global_trees[OCTI_UMSG_DECL]
309 #define umsg_fast_decl          objc_global_trees[OCTI_UMSG_FAST_DECL]
310 #define umsg_super_decl         objc_global_trees[OCTI_UMSG_SUPER_DECL]
311 #define umsg_stret_decl         objc_global_trees[OCTI_UMSG_STRET_DECL]
312 #define umsg_super_stret_decl   objc_global_trees[OCTI_UMSG_SUPER_STRET_DECL]
313 #define objc_get_class_decl     objc_global_trees[OCTI_GET_CLASS_DECL]
314 #define objc_get_meta_class_decl                        \
315                                 objc_global_trees[OCTI_GET_MCLASS_DECL]
316
317 #define objc_super_type         objc_global_trees[OCTI_SUPER_TYPE]
318 #define objc_selector_type              objc_global_trees[OCTI_SEL_TYPE]
319 #define objc_object_type        objc_global_trees[OCTI_ID_TYPE]
320 #define objc_class_type         objc_global_trees[OCTI_CLS_TYPE]
321 #define objc_instance_type      objc_global_trees[OCTI_NST_TYPE]
322 #define objc_protocol_type      objc_global_trees[OCTI_PROTO_TYPE]
323
324 /* Type checking macros.  */
325
326 #define IS_ID(TYPE)                                                     \
327         (TREE_CODE (TYPE) == POINTER_TYPE                               \
328          && (TYPE_MAIN_VARIANT (TREE_TYPE (TYPE))                       \
329              == TREE_TYPE (objc_object_type)))
330 #define IS_CLASS(TYPE)                                                  \
331         (TREE_CODE (TYPE) == POINTER_TYPE                               \
332          && (TYPE_MAIN_VARIANT (TREE_TYPE (TYPE))                       \
333              == TREE_TYPE (objc_class_type)))
334 #define IS_PROTOCOL_QUALIFIED_UNTYPED(TYPE)                             \
335         ((IS_ID (TYPE) || IS_CLASS (TYPE))                              \
336          && TYPE_HAS_OBJC_INFO (TREE_TYPE (TYPE))                       \
337          && TYPE_OBJC_PROTOCOL_LIST (TREE_TYPE (TYPE)))
338 #define IS_SUPER(TYPE)                                                  \
339         (TREE_CODE (TYPE) == POINTER_TYPE                               \
340          && TREE_TYPE (TYPE) == objc_super_template)
341
342 #define class_chain             objc_global_trees[OCTI_CLS_CHAIN]
343 #define alias_chain             objc_global_trees[OCTI_ALIAS_CHAIN]
344 #define interface_chain         objc_global_trees[OCTI_INTF_CHAIN]
345 #define protocol_chain          objc_global_trees[OCTI_PROTO_CHAIN]
346 #define implemented_classes     objc_global_trees[OCTI_IMPL_CHAIN]
347
348 /* Chains to manage selectors that are referenced and defined in the
349    module.  */
350
351 #define cls_ref_chain           objc_global_trees[OCTI_CLS_REF_CHAIN]   /* Classes referenced.  */
352 #define sel_ref_chain           objc_global_trees[OCTI_SEL_REF_CHAIN]   /* Selectors referenced.  */
353 #define objc_ivar_chain         objc_global_trees[OCTI_IVAR_CHAIN]
354
355 /* Chains to manage uniquing of strings.  */
356
357 #define class_names_chain       objc_global_trees[OCTI_CLS_NAMES_CHAIN]
358 #define meth_var_names_chain    objc_global_trees[OCTI_METH_VAR_NAMES_CHAIN]
359 #define meth_var_types_chain    objc_global_trees[OCTI_METH_VAR_TYPES_CHAIN]
360
361
362 /* Backend data declarations.  */
363
364 #define UOBJC_SYMBOLS_decl              objc_global_trees[OCTI_SYMBOLS_DECL]
365 #define UOBJC_INSTANCE_VARIABLES_decl   objc_global_trees[OCTI_NST_VAR_DECL]
366 #define UOBJC_CLASS_VARIABLES_decl      objc_global_trees[OCTI_CLS_VAR_DECL]
367 #define UOBJC_INSTANCE_METHODS_decl     objc_global_trees[OCTI_NST_METH_DECL]
368 #define UOBJC_CLASS_METHODS_decl        objc_global_trees[OCTI_CLS_METH_DECL]
369 #define UOBJC_CLASS_decl                objc_global_trees[OCTI_CLS_DECL]
370 #define UOBJC_METACLASS_decl            objc_global_trees[OCTI_MCLS_DECL]
371 #define UOBJC_SELECTOR_TABLE_decl       objc_global_trees[OCTI_SEL_TABLE_DECL]
372 #define UOBJC_MODULES_decl              objc_global_trees[OCTI_MODULES_DECL]
373 #define GNU_INIT_decl                   objc_global_trees[OCTI_GNU_INIT_DECL]
374
375 /* The following are used when compiling a class implementation.
376    implementation_template will normally be an interface, however if
377    none exists this will be equal to objc_implementation_context...it is
378    set in start_class.  */
379
380 #define objc_interface_context          objc_global_trees[OCTI_INTF_CTX]
381 #define objc_implementation_context     objc_global_trees[OCTI_IMPL_CTX]
382 #define objc_method_context             objc_global_trees[OCTI_METH_CTX]
383 #define objc_ivar_context               objc_global_trees[OCTI_IVAR_CTX]
384
385 #define implementation_template objc_global_trees[OCTI_IMPL_TEMPL]
386 #define objc_class_template     objc_global_trees[OCTI_CLS_TEMPL]
387 #define objc_category_template  objc_global_trees[OCTI_CAT_TEMPL]
388 #define uprivate_record         objc_global_trees[OCTI_UPRIV_REC]
389 #define objc_protocol_template  objc_global_trees[OCTI_PROTO_TEMPL]
390 #define objc_selector_template  objc_global_trees[OCTI_SEL_TEMPL]
391 #define ucls_super_ref          objc_global_trees[OCTI_UCLS_SUPER_REF]
392 #define uucls_super_ref         objc_global_trees[OCTI_UUCLS_SUPER_REF]
393
394 #define umsg_nonnil_decl        objc_global_trees[OCTI_UMSG_NONNIL_DECL]
395 #define umsg_nonnil_stret_decl  objc_global_trees[OCTI_UMSG_NONNIL_STRET_DECL]
396 #define objc_storage_class      objc_global_trees[OCTI_STORAGE_CLS]
397 #define objc_exception_extract_decl             \
398                                 objc_global_trees[OCTI_EXCEPTION_EXTRACT_DECL]
399 #define objc_exception_try_enter_decl           \
400                                 objc_global_trees[OCTI_EXCEPTION_TRY_ENTER_DECL]
401 #define objc_exception_try_exit_decl            \
402                                 objc_global_trees[OCTI_EXCEPTION_TRY_EXIT_DECL]
403 #define objc_exception_match_decl               \
404                                 objc_global_trees[OCTI_EXCEPTION_MATCH_DECL]
405 #define objc_exception_throw_decl               \
406                                 objc_global_trees[OCTI_EXCEPTION_THROW_DECL]
407 #define objc_sync_enter_decl    objc_global_trees[OCTI_SYNC_ENTER_DECL]
408 #define objc_sync_exit_decl     objc_global_trees[OCTI_SYNC_EXIT_DECL]
409 #define objc_exception_data_template            \
410                                 objc_global_trees[OCTI_EXCDATA_TEMPL]
411 #define objc_setjmp_decl        objc_global_trees[OCTI_SETJMP_DECL]
412 #define objc_stack_exception_data               \
413                                 objc_global_trees[OCTI_STACK_EXCEPTION_DATA_DECL]
414 #define objc_caught_exception   objc_global_trees[OCTI_LOCAL_EXCEPTION_DECL]    
415 #define objc_rethrow_exception  objc_global_trees[OCTI_RETHROW_EXCEPTION_DECL]  
416 #define objc_eval_once          objc_global_trees[OCTI_EVAL_ONCE_DECL]  
417 #define objc_catch_type         objc_global_trees[OCTI_CATCH_TYPE]
418
419 #define execclass_decl          objc_global_trees[OCTI_EXECCLASS_DECL]
420
421 #define objc_assign_ivar_decl   objc_global_trees[OCTI_ASSIGN_IVAR_DECL]
422 #define objc_assign_ivar_fast_decl              \
423                                 objc_global_trees[OCTI_ASSIGN_IVAR_FAST_DECL]
424 #define objc_assign_global_decl objc_global_trees[OCTI_ASSIGN_GLOBAL_DECL]
425 #define objc_assign_strong_cast_decl            \
426                                 objc_global_trees[OCTI_ASSIGN_STRONGCAST_DECL]
427
428 #define objc_method_template    objc_global_trees[OCTI_METH_TEMPL]
429 #define objc_ivar_template      objc_global_trees[OCTI_IVAR_TEMPL]
430 #define objc_method_list_ptr    objc_global_trees[OCTI_METH_LIST_TEMPL]
431 #define objc_method_proto_list_ptr              \
432                                 objc_global_trees[OCTI_METH_PROTO_LIST_TEMPL]
433 #define objc_ivar_list_ptr      objc_global_trees[OCTI_IVAR_LIST_TEMPL]
434 #define objc_symtab_template    objc_global_trees[OCTI_SYMTAB_TEMPL]
435 #define objc_module_template    objc_global_trees[OCTI_MODULE_TEMPL]
436 #define objc_super_template     objc_global_trees[OCTI_SUPER_TEMPL]
437 #define objc_object_reference   objc_global_trees[OCTI_OBJ_REF]
438 #define objc_class_reference    objc_global_trees[OCTI_CLS_REF]
439 #define objc_method_prototype_template          \
440                                 objc_global_trees[OCTI_METH_PROTO_TEMPL]
441 #define function1_template      objc_global_trees[OCTI_FUNCTION1_TEMPL]
442 #define function2_template      objc_global_trees[OCTI_FUNCTION2_TEMPL]
443
444 #define objc_object_id          objc_global_trees[OCTI_OBJ_ID]
445 #define objc_class_id           objc_global_trees[OCTI_CLS_ID]
446 #define objc_object_name                objc_global_trees[OCTI_ID_NAME]
447 #define objc_class_name         objc_global_trees[OCTI_CLASS_NAME]
448 #define constant_string_id      objc_global_trees[OCTI_CNST_STR_ID]
449 #define constant_string_type    objc_global_trees[OCTI_CNST_STR_TYPE]
450 #define constant_string_global_id               \
451                                 objc_global_trees[OCTI_CNST_STR_GLOB_ID]
452 #define string_class_decl       objc_global_trees[OCTI_STRING_CLASS_DECL]
453 #define UOBJC_SUPER_decl        objc_global_trees[OCTI_SUPER_DECL]
454
455 #endif /* GCC_OBJC_ACT_H */