aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc-common.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2002-03-26 07:16:01 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-03-26 07:16:01 +0000
commit4f0ade925ddf1d8588568eec56e08bc1d14753b4 (patch)
tree8cda6f7ecc6d1edaf267ea2f85a413a2375c87ba /gcc/ggc-common.c
parent90b2d2afa1e1d6b7a8c37b836de62f70d3a103e0 (diff)
downloadgcc-4f0ade925ddf1d8588568eec56e08bc1d14753b4.zip
gcc-4f0ade925ddf1d8588568eec56e08bc1d14753b4.tar.gz
gcc-4f0ade925ddf1d8588568eec56e08bc1d14753b4.tar.bz2
Makefile.in (ggc-common.o): Update.
* 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. From-SVN: r51369
Diffstat (limited to 'gcc/ggc-common.c')
-rw-r--r--gcc/ggc-common.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c
index 77614ff..9c7b46d 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;
}
}