Java patch: fix resource compilation for non-.jcr enabled targets
Anthony Green
green@redhat.com
Sun Mar 10 20:47:00 GMT 2002
This bug didn't show up 'til we tried "gcj -R" on a target with no .jcr
section (like mingw32, on which this was tested).
Ok for trunk and branch?
AG
2002-03-10 Anthony Green <green@redhat.com>
* jcf-parse.c (yyparse): Don't emit class registration
constructor when compiling resource files.
Index: gcc/java/jcf-parse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-parse.c,v
retrieving revision 1.104.2.1
diff -c -r1.104.2.1 jcf-parse.c
*** jcf-parse.c 2002/03/02 17:58:55 1.104.2.1
--- jcf-parse.c 2002/03/11 02:00:24
***************
*** 1108,1117 ****
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;
}
--- 1108,1114 ----
resource_filename = IDENTIFIER_POINTER (TREE_VALUE (current_file_list));
compile_resource_file (resource_name, resource_filename);
!
return 0;
}
More information about the Java-patches
mailing list