Patch: jvgenmain -vs- --save-temps

Tom Tromey tromey@cygnus.com
Thu Oct 14 13:53:00 GMT 1999


I'm checking in the appended patch, which fixes --save-temps when
compiling a Java program with --main specified.  This is based on a
patch from Niklas Hallqvist.

1999-10-14  Tom Tromey  <tromey@cygnus.com>

	* jvspec.c (jvgenmain_spec): Use `%umain', not just `%u'.

Tom

Index: jvspec.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/jvspec.c,v
retrieving revision 1.25
diff -u -r1.25 jvspec.c
--- jvspec.c	1999/09/23 19:45:39	1.25
+++ jvspec.c	1999/10/14 20:36:42
@@ -50,15 +50,15 @@
 #define COMBINE_INPUTS 0
 
 const char jvgenmain_spec[] =
-  "jvgenmain %i %{!pipe:%u.i} |\n\
-   cc1 %{!pipe:%U.i} %1 \
+  "jvgenmain %i %{!pipe:%umain.i} |\n\
+   cc1 %{!pipe:%Umain.i} %1 \
 		   %{!Q:-quiet} -dumpbase %b.c %{d*} %{m*} %{a*}\
 		   %{g*} %{O*} \
 		   %{v:-version} %{pg:-p} %{p} %{f*}\
 		   %{aux-info*}\
 		   %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
-		   %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%U.s}} |\n\
-              %{!S:as %a %Y -o %d%w%u%O %{!pipe:%U.s} %A\n }";
+		   %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%Umain.s}} |\n\
+              %{!S:as %a %Y -o %d%w%umain%O %{!pipe:%Umain.s} %A\n }";
 
 /* Return full path name of spec file if it is in DIR, or NULL if
    not.  */


More information about the Gcc-patches mailing list