Fix gcj -R.
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Mar 2002 18:00:22 +0000 (18:00 +0000)
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Mar 2002 18:00:22 +0000 (18:00 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50815 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/jcf-parse.c

index be360b4..3f7b603 100644 (file)
@@ -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,
index b19b9e9..d77ddce 100644 (file)
@@ -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;
     }