OSDN Git Service

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