PATCH: don't link when --syntax-only given

Tom Tromey tromey@cygnus.com
Tue Feb 23 17:41:00 GMT 1999


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;


More information about the Gcc-patches mailing list