aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jvspec.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1999-02-23 17:42:38 +0000
committerTom Tromey <tromey@gcc.gnu.org>1999-02-23 17:42:38 +0000
commit4e2e5821aa1573aa590ef4f30eb9224fa964e65d (patch)
treee2d4e220eb2aabfa50a434c5ae15b6ba4254fc1d /gcc/java/jvspec.c
parent4873b277ca11ccbc7cea2f03bb273cf157b2e57d (diff)
downloadgcc-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.c7
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;