summaryrefslogtreecommitdiff
path: root/gcc/java/jvspec.c
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-23 17:42:38 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-23 17:42:38 +0000
commitbd29181aa053906df53bbfddd42eb97d2b90eb98 (patch)
treee2d4e220eb2aabfa50a434c5ae15b6ba4254fc1d /gcc/java/jvspec.c
parent9946d3d1ad04620667f4d5420a869fa7a81747d4 (diff)
downloadgcc-bd29181aa053906df53bbfddd42eb97d2b90eb98.tar.gz
* jvspec.c (lang_specific_driver): Recognize -fsyntax-only and
disable linking in that case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25389 138bc75d-0d04-0410-961f-82ee72b054a4
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 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;