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]

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


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;


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