This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: recognize '-o none'
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 12 Feb 2005 20:32:37 -0700
- Subject: [gcjx] Patch: FYI: recognize '-o none'
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcjx branch.
This adds "-o none" to the gcjx driver. This is basically the same
thing as gcc's "--syntax-only".
Tom
#
# patch "gcc/gcjx/ChangeLog"
# from [3a80dc5d13469b67db95550aa67c28310e236bf4]
# to [4e25afc239151b3d8548c6c035a059e74ba99524]
#
# patch "gcc/gcjx/main.cc"
# from [35a5bbad0eccf7d1337570e0cd53da790471aa44]
# to [8318aaedebd267a73cfc9dd7d69092a3e8acffb7]
#
--- gcc/gcjx/ChangeLog
+++ gcc/gcjx/ChangeLog
@@ -1,5 +1,8 @@
2005-02-05 Tom Tromey <tromey@redhat.com>
+ * main.cc (class argument_parser): Document '-o none'.
+ (class argument_parser): Recognize it.
+
* main.cc (gcjx_main): Pause workers.
* compiler.cc (compiler): Initialize pause_count.
(dispatch_job): Handle PAUSE.
--- gcc/gcjx/main.cc
+++ gcc/gcjx/main.cc
@@ -258,6 +258,7 @@
print ("-o jni", "generate JNI headers", 3);
print ("-o cni", "generate CNI headers", 3);
print ("-o jnistub", "generate JNI stubs", 3);
+ print ("-o none", "check syntax but do not generate code", 3);
os << std::endl;
@@ -445,6 +446,10 @@
else if (otype == "jnistub")
comp->add_code_generator (new jni_stub_generator (comp,
comp->get_directory_cache ()));
+ else if (otype == "none")
+ {
+ // Nothing.
+ }
else
die_unrecognized ("output type", otype);
outputs.insert (otype);