This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ecj] Patch: FYI: ecj specs fix


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)}",


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]