Patch: FYI: gcj -vs- -fsyntax-only

Tom Tromey tromey@redhat.com
Tue Sep 12 18:54:00 GMT 2006


I was seeing an assertion failure when compiling a .class file with
-fsyntax-only.  I tracked this down to gcj not reading libgcj.spec
when -fsyntax-only was given.  I couldn't see any reason for this
behavior, so I've removed it.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>
	* jvspec.c (lang_specific_driver): Read spec file even if
	-fsyntax-only.

Index: jvspec.c
===================================================================
--- jvspec.c	(revision 116888)
+++ jvspec.c	(working copy)
@@ -1,6 +1,6 @@
 /* Specific flags and argument handling of the front-end of the 
    GNU compiler for the Java(TM) language.
-   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
+   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -358,7 +358,6 @@
 	  else if (strcmp (argv[i], "-fsyntax-only") == 0
 		   || strcmp (argv[i], "--syntax-only") == 0)
 	    {
-	      want_spec_file = 0;
 	      library = 0;
 	      will_link = 0;
 	      continue;



More information about the Java-patches mailing list