From 8b0e9a7297b04510099c0cf5b30ad3c368bd9da0 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Mon, 12 Nov 2001 00:02:36 +0000 Subject: Makefile.in (c-lang.o): Depend on $(VARRAY_H). * Makefile.in (c-lang.o): Depend on $(VARRAY_H). * c-decl.c (c_expand_body): Take argument can_defer_p. Use it to decide whether to defer a function. (finish_function): Adjust. (c_expand_deferred_function): New function. * c-lang.c (deferred_fns): New variable. (c_init): Initialize it, and mark it as a root. (defer_fn): New function. (finish_file): Expand all deferred functions. * c-tree.h (defer_fn): Declare. (c_expand_deferred_function): Likewise. * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H). * objc-act.c (deferred_fns): New variable. (objc_init): Initialize it, and mark it as a root. (defer_fn): New function. (finish_file): Expand all deferred functions. From-SVN: r46933 --- gcc/c-tree.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/c-tree.h') diff --git a/gcc/c-tree.h b/gcc/c-tree.h index acde94e..19e5b03 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -152,6 +152,8 @@ extern int maybe_objc_comptypes PARAMS ((tree, tree, int)); extern tree maybe_building_objc_message_expr PARAMS ((void)); extern int recognize_objc_keyword PARAMS ((void)); extern tree lookup_objc_ivar PARAMS ((tree)); +/* in c-lang.c and objc/objc-act.c */ +extern int defer_fn PARAMS ((tree)); /* in c-parse.in */ extern void c_parse_init PARAMS ((void)); @@ -219,6 +221,7 @@ extern tree start_struct PARAMS ((enum tree_code, tree)); extern void store_parm_decls PARAMS ((void)); extern tree xref_tag PARAMS ((enum tree_code, tree)); extern tree c_begin_compound_stmt PARAMS ((void)); +extern void c_expand_deferred_function PARAMS ((tree)); extern void c_expand_decl_stmt PARAMS ((tree)); /* in c-typeck.c */ -- cgit v1.1