aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog8
-rw-r--r--gcc/java/java-tree.h1
-rw-r--r--gcc/java/jcf-parse.c2
-rw-r--r--gcc/java/lang.c43
4 files changed, 12 insertions, 42 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 2846659..1588521 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,5 +1,13 @@
2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
+ * java-tree.h (java_set_yydebug): New.
+ * jcf-parse.c (set_yydebug): Rename java_set_yydebug.
+ * lang.c (LANG_HOOKS_SET_YYDEBUG): Override.
+ (print_lang_decl, print_lang_type, print_lang_identifier,
+ print_lang_statistics, lang_print_xnode): Remove.
+
+2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
+
* jcf-parse.c (init_lex): Remove.
* lang.c (language_string, lang_identify): Remove.
(struct lang_hooks): Constify.
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h
index 132cd71..d9417b4 100644
--- a/gcc/java/java-tree.h
+++ b/gcc/java/java-tree.h
@@ -996,6 +996,7 @@ struct lang_type
#define JCF_u4 unsigned long
#define JCF_u2 unsigned short
+extern void java_set_yydebug PARAMS ((int));
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/jcf-parse.c b/gcc/java/jcf-parse.c
index 6190cf3..ec76e81 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -262,7 +262,7 @@ parse_signature (jcf, sig_index)
}
void
-set_yydebug (value)
+java_set_yydebug (value)
int value;
{
yydebug = value;
diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index feeb89a..9ba1849 100644
--- a/gcc/java/lang.c
+++ b/gcc/java/lang.c
@@ -203,6 +203,8 @@ static int dependency_tracking = 0;
#define LANG_HOOKS_INIT_OPTIONS java_init_options
#undef LANG_HOOKS_DECODE_OPTION
#define LANG_HOOKS_DECODE_OPTION java_decode_option
+#undef LANG_HOOKS_SET_YYDEBUG
+#define LANG_HOOKS_SET_YYDEBUG java_set_yydebug
/* Each front end provides its own. */
const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
@@ -741,44 +743,3 @@ java_init_options ()
flag_exceptions = 1;
flag_non_call_exceptions = 1;
}
-
-/* Hooks for print_node. */
-
-void
-print_lang_decl (file, node, indent)
- FILE *file __attribute ((__unused__));
- tree node __attribute ((__unused__));
- int indent __attribute ((__unused__));
-{
-}
-
-void
-print_lang_type (file, node, indent)
- FILE *file __attribute ((__unused__));
- tree node __attribute ((__unused__));
- int indent __attribute ((__unused__));
-{
-}
-
-void
-print_lang_identifier (file, node, indent)
- FILE *file __attribute ((__unused__));
- tree node __attribute ((__unused__));
- int indent __attribute ((__unused__));
-{
-}
-
-void
-print_lang_statistics ()
-{
-}
-
-/* used by print-tree.c */
-
-void
-lang_print_xnode (file, node, indent)
- FILE *file __attribute ((__unused__));
- tree node __attribute ((__unused__));
- int indent __attribute ((__unused__));
-{
-}