aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2004-03-16 16:00:40 -0800
committerPer Bothner <bothner@gcc.gnu.org>2004-03-16 16:00:40 -0800
commitc4cef86b3ba6eef9761fab157340944b0d735a99 (patch)
tree923f243bc00a67167f3a15c52a51c33a251d635d
parentbc4c01b72555815fec6389d1a91df9405f496947 (diff)
downloadgcc-c4cef86b3ba6eef9761fab157340944b0d735a99.zip
gcc-c4cef86b3ba6eef9761fab157340944b0d735a99.tar.gz
gcc-c4cef86b3ba6eef9761fab157340944b0d735a99.tar.bz2
jcf-jump.c (options): New --print-constants option.
* jcf-jump.c (options): New --print-constants option. * gcj.texi (Invoking jcf-dump): Document --print-constants. From-SVN: r79558
-rw-r--r--gcc/java/ChangeLog3
-rw-r--r--gcc/java/gcj.texi5
-rw-r--r--gcc/java/jcf-dump.c3
3 files changed, 10 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 0ea4ce1..2f48c35 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,5 +1,8 @@
2004-03-16 Per Bothner <per@bothner.com>
+ * jcf-jump.c (options): New --print-constants option.
+ * gcj.texi (Invoking jcf-dump): Document --print-constants.
+
* jcf-dump.c (flag_print_constant_pool): Default to off.
(print_constant_terse_with_index): New helper function.
(various places): Check flag_print_constant_pool where missing.
diff --git a/gcc/java/gcj.texi b/gcc/java/gcj.texi
index 374bdf8..21c12ee 100644
--- a/gcc/java/gcj.texi
+++ b/gcc/java/gcj.texi
@@ -760,6 +760,10 @@ or file name.
@item -c
Disassemble method bodies. By default method bodies are not printed.
+@item --print-constants
+Print the constant pool. When printing a reference to a constant
+also print its index in the constant pool.
+
@item --javap
Generate output in @code{javap} format. The implementation of this
feature is very incomplete.
@@ -778,6 +782,7 @@ Print version number, then exit.
@item -v, --verbose
Print extra information while running.
+Implies @code{--print-constants}.
@end table
@c man end
diff --git a/gcc/java/jcf-dump.c b/gcc/java/jcf-dump.c
index c28a3f4..3d5f0c5 100644
--- a/gcc/java/jcf-dump.c
+++ b/gcc/java/jcf-dump.c
@@ -874,7 +874,8 @@ static const struct option options[] =
{ "verbose", no_argument, NULL, 'v' },
{ "version", no_argument, NULL, OPT_VERSION },
{ "javap", no_argument, NULL, OPT_JAVAP },
- { "print-main", no_argument, &flag_print_main, 1 },
+ { "print-main", no_argument, &flag_print_main, 1 },
+ { "print-constants", no_argument, &flag_print_constant_pool, 1 },
{ NULL, no_argument, NULL, 0 }
};