This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: don't link when --syntax-only given
- To: Egcs Patch List <egcs-patches at cygnus dot com>
- Subject: PATCH: don't link when --syntax-only given
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 23 Feb 1999 18:45:45 -0700
- Reply-To: tromey at cygnus dot com
I'm committing this patch. It changes the `gcj' front end so that no
libraries are added to the command line when --syntax-only is given.
This avoid spurious warnings from another part of the compiler.
1999-02-23 Tom Tromey <tromey@cygnus.com>
* jvspec.c (lang_specific_driver): Recognize -fsyntax-only and
disable linking in that case.
Tom
Index: jvspec.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/java/jvspec.c,v
retrieving revision 1.20
diff -u -r1.20 jvspec.c
--- jvspec.c 1999/02/18 21:52:03 1.20
+++ jvspec.c 1999/02/24 01:39:31
@@ -315,6 +315,13 @@
quote = argv[i];
added -= 1;
}
+ else if (strcmp (argv[i], "-fsyntax-only") == 0
+ || strcmp (argv[i], "--syntax-only") == 0)
+ {
+ library = 0;
+ will_link = 0;
+ continue;
+ }
else
/* Pass other options through. */
continue;