diff options
author | Tom Tromey <tromey@cygnus.com> | 1999-02-23 17:42:38 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 1999-02-23 17:42:38 +0000 |
commit | 4e2e5821aa1573aa590ef4f30eb9224fa964e65d (patch) | |
tree | e2d4e220eb2aabfa50a434c5ae15b6ba4254fc1d /gcc/java/jvspec.c | |
parent | 4873b277ca11ccbc7cea2f03bb273cf157b2e57d (diff) | |
download | gcc-4e2e5821aa1573aa590ef4f30eb9224fa964e65d.zip gcc-4e2e5821aa1573aa590ef4f30eb9224fa964e65d.tar.gz gcc-4e2e5821aa1573aa590ef4f30eb9224fa964e65d.tar.bz2 |
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
Diffstat (limited to 'gcc/java/jvspec.c')
-rw-r--r-- | gcc/java/jvspec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/java/jvspec.c b/gcc/java/jvspec.c index d91140a..d048327 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; |