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]

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


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;


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