This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[ecj] Patch: FYI: ecj specs fix
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 06 Jun 2006 16:39:32 -0600
- Subject: [ecj] Patch: FYI: ecj specs fix
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcj-eclipse branch.
This fixes a bug in the specs for invoking jc1 which was found by the
test suite. We didn't properly handle the case where a single
compilation compiled multiple .java files and also linked in a .o.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* lang-specs.h <jc1>: Add .jar file to command line if
-fsaw-java-file. Also, remove -ffilelist-file in this case.
Index: lang-specs.h
===================================================================
--- lang-specs.h (revision 114367)
+++ lang-specs.h (working copy)
@@ -47,7 +47,7 @@
%{!findirect-dispatch:-fzip-dependency=%U.zip} \
%{!fsyntax-only:-fzip-target=%U.jar}}\n \
%{.class|.zip|.jar|!fsyntax-only:jc1 \
- %{.java:%U.jar} \
+ %{.java|fsaw-java-file:%U.jar %<ffilelist-file} \
%{.class|.zip|.jar|ffilelist-file|fcompile-resource*:%i} \
%(jc1) %(cc1_options) %{I*} %{!findirect-dispatch:-I%U.zip} \
%(invoke_as)}",