This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: gcj -vs- -fsyntax-only
- 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: 12 Sep 2006 12:48:11 -0600
- Subject: Patch: FYI: gcj -vs- -fsyntax-only
- Reply-to: tromey at redhat dot com
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;