summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/jcf-parse.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index be360b45873..3f7b603f7fc 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-15 Anthony Green <green@redhat.com>
+
+ * jcf-parse.c (yyparse): Don't emit class registration
+ constructor when compiling resource files.
+
2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* lang.c (java_tree_code_type, java_tree_code_length,
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index b19b9e9d84d..d77ddce15da 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -1053,10 +1053,7 @@ yyparse ()
resource_filename = IDENTIFIER_POINTER (TREE_VALUE (current_file_list));
compile_resource_file (resource_name, resource_filename);
-
- java_expand_classes ();
- if (!java_report_errors ())
- emit_register_classes ();
+
return 0;
}