This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: document -X and -?
- From: Tom Tromey <tromey at redhat dot com>
- To: GCC libjava patches <java-patches at gcc dot gnu dot org>
- Date: 13 Aug 2003 11:08:13 -0600
- Subject: Patch: FYI: document -X and -?
- Reply-to: tromey at redhat dot com
I'm checking this in on the trunk.
This adds documentation and --help support for the -X and -? options
to gij.
Tom
Index: gcc/java/ChangeLog
from Tom Tromey <tromey@redhat.com>
* gcj.texi (Invoking gij): Document -X and -?.
Index: gcc/java/gcj.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/gcj.texi,v
retrieving revision 1.54
diff -u -r1.54 gcj.texi
--- gcc/java/gcj.texi 8 Jul 2003 21:25:54 -0000 1.54
+++ gcc/java/gcj.texi 13 Aug 2003 17:08:27 -0000
@@ -778,7 +778,8 @@
[@option{-cp} @var{path}] [@option{-classpath} @var{path}]
[@option{-D}@var{name}[=@var{value}]@dots{}]
[@option{-ms=}@var{number}] [@option{-mx=}@var{number}]
- [@option{--showversion}] [@option{--version}] [@option{--help}]
+ [@option{-X@var{argument}]
+ [@option{--showversion}] [@option{--version}] [@option{--help}][@option{-?}]
@c man end
@c man begin SEEALSO gij
gcc(1), gcj(1), gcjh(1), jv-scan(1), jcf-dump(1), gfdl(7),
@@ -838,11 +839,18 @@
@item -mx=@var{number}
This sets the maximum heap size.
+@item -X
+@itemx -X@var{argument}
+Supplying @code{-X} by itself will cause @code{gij} to list all the
+supported @code{-X} options. Currently there are none. Unrecognized
+@code{-X} options are ignored, for compatibility with other runtimes.
+
@item -jar
This indicates that the name passed to @code{gij} should be interpreted
as the name of a jar file, not a class.
@item --help
+@itemx -?
Print help, then exit.
@item --showversion
Index: libjava/ChangeLog
from Tom Tromey <tromey@redhat.com>
* gij.cc (help): Document -? and -X.
Index: libjava/gij.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gij.cc,v
retrieving revision 1.21
diff -u -r1.21 gij.cc
--- libjava/gij.cc 12 Aug 2003 21:35:18 -0000 1.21
+++ libjava/gij.cc 13 Aug 2003 17:08:31 -0000
@@ -31,7 +31,8 @@
printf (" --cp LIST set class path\n");
printf (" --classpath LIST set class path\n");
printf (" -DVAR=VAL define property VAR with value VAL\n");
- printf (" --help print this help, then exit\n");
+ printf (" -?, --help print this help, then exit\n");
+ printf (" -X print help on supported -X options, then exit\n");
printf (" --ms=NUMBER set initial heap size\n");
printf (" --mx=NUMBER set maximum heap size\n");
printf (" --showversion print version number, then keep going\n");