diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2001-10-05 02:49:16 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2001-10-05 02:49:16 +0000 |
commit | 588d3ade1368851d1f6a239bcc7a76539ae13649 (patch) | |
tree | 2f6c9d765b33ae23a613a61116ed9e165f3ee6d9 /gcc/ggc-common.c | |
parent | 25af8512559873d4b6e67d27a07f504a585b6037 (diff) | |
download | gcc-588d3ade1368851d1f6a239bcc7a76539ae13649.zip gcc-588d3ade1368851d1f6a239bcc7a76539ae13649.tar.gz gcc-588d3ade1368851d1f6a239bcc7a76539ae13649.tar.bz2 |
Makefile.in (OBJS): Added tree-inline.o.
* Makefile.in (OBJS): Added tree-inline.o.
(c-common.o): Depend on tree-inline.h.
(tree-inline.o): New target.
* c-common.c: Include tree-inline.h.
(c_mark_lang_decl): Don't mark saved_tree.
(c_common_lang_init): Set lang_anon_aggr_type_p.
* c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
(struct c_lang_decl): Moved saved_tree to tree_decl.
* ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
* integrate.h (function_attribute_inlinable_p): Declare it.
* integrate.c (function_attribute_inlinable_p): Export it.
* tree-inline.c: New file. Define variables declared in...
* tree-inline.h: New file. Declare functions to be moved to
tree-inline.c. Define macros and declare types and hooks for
language-specific tree inlining.
(flag_inline_trees): Moved definition from cp/decl2.c.
* tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
(TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
(struct tree_decl): Moved saved_tree from c_lang_decl and
inlined_fns from C++'s lang_decl.
From-SVN: r46021
Diffstat (limited to 'gcc/ggc-common.c')
-rw-r--r-- | gcc/ggc-common.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index 53057c8..5fdd5e1 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -463,8 +463,13 @@ ggc_mark_trees () ggc_mark_tree (DECL_VINDEX (t)); if (DECL_ASSEMBLER_NAME_SET_P (t)) ggc_mark_tree (DECL_ASSEMBLER_NAME (t)); - if (TREE_CODE (t) == FUNCTION_DECL && DECL_SAVED_INSNS (t)) - ggc_mark_struct_function (DECL_SAVED_INSNS (t)); + if (TREE_CODE (t) == FUNCTION_DECL) + { + ggc_mark_tree (DECL_SAVED_TREE (t)); + ggc_mark_tree (DECL_INLINED_FNS (t)); + if (DECL_SAVED_INSNS (t)) + ggc_mark_struct_function (DECL_SAVED_INSNS (t)); + } lang_mark_tree (t); break; |