diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-26 07:16:01 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-26 07:16:01 +0000 |
commit | 6d26a3eeca0bcf0899a23fda48d00147d09b5d36 (patch) | |
tree | 8cda6f7ecc6d1edaf267ea2f85a413a2375c87ba /gcc/ggc-common.c | |
parent | 8ca5c49ac8be71cb3d3d4c27a80ccdbdd9aa1650 (diff) | |
download | gcc-6d26a3eeca0bcf0899a23fda48d00147d09b5d36.tar.gz |
* Makefile.in (ggc-common.o): Update.
* c-decl.c (lang_mark_tree): Rename c_mark_tree.
* c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
* c-tree.h (c_mark_tree): New.
* ggc-common.c: Include langhooks.h.
(gcc_mark_trees): Use new langhook.
* ggc-callbacks.c: Delete file.
* ggc.h (lang_mark_tree): Remove.
* langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.h (struct lang_hooks): New hook.
ada:
* misc.c (LANG_HOOKS_MARK_TREE): Redefine.
(lang_mark_tree): Make static, rename.
cp:
* cp-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
* cp-tree.h (cxx_mark_tree): New.
* decl.c (lang_mark_tree): Rename cxx_mark_tree.
f:
* com.c (LANG_HOOKS_MARK_TREE): Redefine.
(lang_mark_tree): Rename ffe_mark_tree, make static.
java:
* decl.c (lang_mark_tree): Rename java_mark_tree.
* java-tree.h (java_mark_tree): New.
* java-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
objc:
* objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51369 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-common.c')
-rw-r--r-- | gcc/ggc-common.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index 77614ff8b5b..9c7b46d2b8b 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -30,6 +30,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "hashtab.h" #include "varray.h" #include "ggc.h" +#include "langhooks.h" /* Statistics about the allocation. */ static ggc_statistics *ggc_stats; @@ -436,7 +437,7 @@ ggc_mark_trees () break; case IDENTIFIER_NODE: - lang_mark_tree (t); + (*lang_hooks.mark_tree) (t); continue; default: @@ -470,7 +471,7 @@ ggc_mark_trees () if (DECL_SAVED_INSNS (t)) ggc_mark_struct_function (DECL_SAVED_INSNS (t)); } - lang_mark_tree (t); + (*lang_hooks.mark_tree) (t); break; case 't': /* A type node. */ @@ -487,7 +488,7 @@ ggc_mark_trees () ggc_mark_tree (TYPE_MAIN_VARIANT (t)); ggc_mark_tree (TYPE_BINFO (t)); ggc_mark_tree (TYPE_CONTEXT (t)); - lang_mark_tree (t); + (*lang_hooks.mark_tree) (t); break; case 'b': /* A lexical block. */ @@ -518,7 +519,7 @@ ggc_mark_trees () } case 'x': - lang_mark_tree (t); + (*lang_hooks.mark_tree) (t); break; } } |