aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@cygnus.co.uk>1999-07-20 10:41:10 +0000
committerBernd Schmidt <crux@gcc.gnu.org>1999-07-20 10:41:10 +0000
commit7f4edbcba63f129d037ffba8bd6deab84da5fd43 (patch)
treeacba269fe48cc12a4f0ec25249c8195ed409ca23 /gcc/objc
parent3791a1dc294190ba6e759fdd1e5cb46cbdd54713 (diff)
downloadgcc-7f4edbcba63f129d037ffba8bd6deab84da5fd43.zip
gcc-7f4edbcba63f129d037ffba8bd6deab84da5fd43.tar.gz
gcc-7f4edbcba63f129d037ffba8bd6deab84da5fd43.tar.bz2
c-common.h: New file.
* c-common.h: New file. * c-common.c (permanent_obstack): Delete unused declaration. (c_global_trees): New array. (c_common_nodes_and_builtins): New function; split off common code from init_decl_processing in both c-decl.c and cp/decl.c. * c-tree.h: Delete lots of declarations of tree nodes; replaced by c_global_trees and accessor macros defined in c-common.h. Include c-common.h. * c-decl.c: Delete definitions for tree nodes that were replaced by c_global_trees. (init_decl_processing): Build void_list_node. Call c_common_nodes_and_builtins; delete code to generate the common builtins here. * objc/objc-act.c (build_module_descriptor): Rename variable void_list_node to avoid clash with c-common.h. * cp/cp-tree.h: Delete lots of declarations of tree nodes; replaced by c_global_trees and accessor macros defined in c-common.h. (cp_tree_index): New enumeration. (cp_global_trees): Declare new array. Add accessor macros for it, and delete declarations of tree nodes replaced by it. (builtin_function): Delete macro, add declaration for new function. Include c-common.h. * cp/decl.c: Delete definitions for tree nodes that were replaced by cp_global_trees and c_global_trees. (init_decl_processing): Call c_common_nodes_and_builtins; delete code to generate the common builtins here. (builtin_function): New function. * cp/decl2.c (abort_fndecl): Delete declaration. * cp/except.c (expand_builtin_return_address): Delete declaration. (builtin_return_address_fndecl): Delete variable. (const_ptr_type_node): Delete declaration. * cp/lex.c (cons_up_default_function): Delete declaration of void_list_node. * cp/parse.y (void_list_node): Delete declaration. * cp/rtti.c (type_info_type_node, tinfo_fn_id, tinfo_fn_type): Delete variables. (const_string_type_node): Delete declaration. * cp/search.c (abort_fndecl): Delete declaration. * Makefile.in: Update dependencies. * objc/Make-lang.in: Likewise. * cp/Makefile.in: Likewise. From-SVN: r28188
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/Make-lang.in12
-rw-r--r--gcc/objc/objc-act.c10
2 files changed, 12 insertions, 10 deletions
diff --git a/gcc/objc/Make-lang.in b/gcc/objc/Make-lang.in
index 9a84f0f..805c7cd 100644
--- a/gcc/objc/Make-lang.in
+++ b/gcc/objc/Make-lang.in
@@ -66,8 +66,9 @@ cc1obj$(exeext): $(P) $(OBJS) $(OBJC_OBJS) $(LIBDEPS)
objc-parse.o : $(srcdir)/objc/objc-parse.c \
$(CONFIG_H) $(TREE_H) $(srcdir)/toplev.h \
- $(srcdir)/c-lex.h $(srcdir)/c-tree.h $(srcdir)/input.h \
- $(srcdir)/flags.h $(srcdir)/output.h $(srcdir)/objc/objc-act.h system.h
+ $(srcdir)/c-lex.h $(srcdir)/c-tree.h $(srcdir)/c-common.h \
+ $(srcdir)/input.h $(srcdir)/flags.h $(srcdir)/output.h \
+ $(srcdir)/objc/objc-act.h system.h
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -I$(srcdir)/objc \
-c $(srcdir)/objc/objc-parse.c
@@ -85,9 +86,10 @@ $(srcdir)/objc/objc-parse.y: $(srcdir)/c-parse.in
objc-act.o : $(srcdir)/objc/objc-act.c \
$(CONFIG_H) $(TREE_H) $(RTL_H) system.h \
- $(srcdir)/c-tree.h $(srcdir)/c-lex.h $(srcdir)/toplev.h \
- $(srcdir)/flags.h $(srcdir)/objc/objc-act.h $(srcdir)/input.h \
- $(srcdir)/function.h $(srcdir)/output.h $(srcdir)/c-parse.h
+ $(srcdir)/c-tree.h $(srcdir)/c-common.h $(srcdir)/c-lex.h \
+ $(srcdir)/toplev.h $(srcdir)/flags.h $(srcdir)/objc/objc-act.h \
+ $(srcdir)/input.h $(srcdir)/function.h $(srcdir)/output.h \
+ $(srcdir)/c-parse.h
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -I$(srcdir)/objc \
-c $(srcdir)/objc/objc-act.c
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index a2842c8..685c950 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -1769,17 +1769,17 @@ build_module_descriptor ()
return 0;
{
- tree parms, function_decl, decelerator, void_list_node;
+ tree parms, function_decl, decelerator, void_list_node_1;
tree function_type;
tree init_function_name = get_file_function_name ('I');
/* Declare void __objc_execClass (void *); */
- void_list_node = build_tree_list (NULL_TREE, void_type_node);
+ void_list_node_1 = build_tree_list (NULL_TREE, void_type_node);
function_type
= build_function_type (void_type_node,
tree_cons (NULL_TREE, ptr_type_node,
- void_list_node));
+ void_list_node_1));
function_decl = build_decl (FUNCTION_DECL,
get_identifier (TAG_EXECCLASS),
function_type);
@@ -1797,12 +1797,12 @@ build_module_descriptor ()
/* void _GLOBAL_$I$<gnyf> () {objc_execClass (&L_OBJC_MODULES);} */
- start_function (void_list_node,
+ start_function (void_list_node_1,
build_parse_node (CALL_EXPR, init_function_name,
/* This has the format of the output
of get_parm_info. */
tree_cons (NULL_TREE, NULL_TREE,
- void_list_node),
+ void_list_node_1),
NULL_TREE),
NULL_TREE, NULL_TREE, 0);
#if 0 /* This should be turned back on later