This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Java patch: fix resource compilation for non-.jcr enabled targets
- From: Anthony Green <green at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: 10 Mar 2002 18:07:21 -0800
- Subject: Java patch: fix resource compilation for non-.jcr enabled targets
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;
}