jvspec.c (lang_specific_driver): Recognize -fsyntax-only and disable linking in that...
authorTom Tromey <tromey@cygnus.com>
Tue, 23 Feb 1999 17:42:38 +0000 (17:42 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 23 Feb 1999 17:42:38 +0000 (17:42 +0000)
* jvspec.c (lang_specific_driver): Recognize -fsyntax-only and
disable linking in that case.

From-SVN: r25389

gcc/java/ChangeLog
gcc/java/jvspec.c

index deecd96ae29e59973cd2fdfa54a5a3034d46906f..b9f9c2fe28bff40f75a6275df18b9ca5b9ae2272 100644 (file)
@@ -1,3 +1,8 @@
+1999-02-23  Tom Tromey  <tromey@cygnus.com>
+
+       * jvspec.c (lang_specific_driver): Recognize -fsyntax-only and
+       disable linking in that case.
+
 1999-02-20  Tom Tromey  <tromey@cygnus.com>
 
        * jcf.h (UTF8_GET): Mask first byte of 3-byte encoding with 0x0f,
index d91140af3e9379d5e964a52b4348a2b1db947edd..d048327f2385c383d83b2bd43077df1cb6486168 100644 (file)
@@ -315,6 +315,13 @@ lang_specific_driver (fn, in_argc, in_argv, in_added_libraries)
              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;