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
This commit is contained in:
Tom Tromey 1999-02-23 17:42:38 +00:00 committed by Tom Tromey
parent 4873b277ca
commit 4e2e5821aa
2 changed files with 12 additions and 0 deletions

View 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,

View 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;