summaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-26 07:16:01 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-26 07:16:01 +0000
commit6d26a3eeca0bcf0899a23fda48d00147d09b5d36 (patch)
tree8cda6f7ecc6d1edaf267ea2f85a413a2375c87ba /gcc/java
parent8ca5c49ac8be71cb3d3d4c27a80ccdbdd9aa1650 (diff)
downloadgcc-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/java')
-rw-r--r--gcc/java/ChangeLog6
-rw-r--r--gcc/java/decl.c2
-rw-r--r--gcc/java/java-tree.h1
-rw-r--r--gcc/java/lang.c2
4 files changed, 10 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index cb18fc596d6..1605e212458 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,9 @@
+2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
+
+ * decl.c (lang_mark_tree): Rename java_mark_tree.
+ * java-tree.h (java_mark_tree): New.
+ * java-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
+
2002-03-25 Zack Weinberg <zack@codesourcery.com>
* lex.c: Change java_perform_atof to take normal parameters
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index a84269d09f9..a0a77b26d9b 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -1835,7 +1835,7 @@ end_java_method ()
/* Mark language-specific parts of T for garbage-collection. */
void
-lang_mark_tree (t)
+java_mark_tree (t)
tree t;
{
if (TREE_CODE (t) == IDENTIFIER_NODE)
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h
index 5fde938b663..de7b1025152 100644
--- a/gcc/java/java-tree.h
+++ b/gcc/java/java-tree.h
@@ -1038,6 +1038,7 @@ struct lang_type
extern void java_set_yydebug PARAMS ((int));
extern void java_parse_file PARAMS ((void));
+extern void java_mark_tree PARAMS ((tree));
extern void add_assume_compiled PARAMS ((const char *, int));
extern tree lookup_class PARAMS ((tree));
extern tree lookup_java_constructor PARAMS ((tree, tree));
diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index c612b491b4a..99a5e20037c 100644
--- a/gcc/java/lang.c
+++ b/gcc/java/lang.c
@@ -223,6 +223,8 @@ static int dependency_tracking = 0;
#define LANG_HOOKS_SET_YYDEBUG java_set_yydebug
#undef LANG_HOOKS_PARSE_FILE
#define LANG_HOOKS_PARSE_FILE java_parse_file
+#undef LANG_HOOKS_MARK_TREE
+#define LANG_HOOKS_MARK_TREE java_mark_tree
#undef LANG_HOOKS_DUP_LANG_SPECIFIC_DECL
#define LANG_HOOKS_DUP_LANG_SPECIFIC_DECL java_dup_lang_specific_decl
#undef LANG_HOOKS_DECL_PRINTABLE_NAME