From: Tom Tromey Date: Tue, 23 Feb 1999 17:42:38 +0000 (+0000) Subject: jvspec.c (lang_specific_driver): Recognize -fsyntax-only and disable linking in that... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e2e5821aa1573aa590ef4f30eb9224fa964e65d;p=gcc.git jvspec.c (lang_specific_driver): Recognize -fsyntax-only and disable linking in that case. * jvspec.c (lang_specific_driver): Recognize -fsyntax-only and disable linking in that case. From-SVN: r25389 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index deecd96ae29..b9f9c2fe28b 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +1999-02-23 Tom Tromey + + * jvspec.c (lang_specific_driver): Recognize -fsyntax-only and + disable linking in that case. + 1999-02-20 Tom Tromey * jcf.h (UTF8_GET): Mask first byte of 3-byte encoding with 0x0f, diff --git a/gcc/java/jvspec.c b/gcc/java/jvspec.c index d91140af3e9..d048327f238 100644 --- a/gcc/java/jvspec.c +++ b/gcc/java/jvspec.c @@ -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;