diff options
| author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-17 00:00:40 +0000 |
|---|---|---|
| committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-17 00:00:40 +0000 |
| commit | fc304e563a7ade7c2675d06fddba51b9b0bfae2a (patch) | |
| tree | 923f243bc00a67167f3a15c52a51c33a251d635d | |
| parent | f30a9f287c063194354f8d4e87cf41692d59b1b1 (diff) | |
| download | ppe42-gcc-fc304e563a7ade7c2675d06fddba51b9b0bfae2a.tar.gz ppe42-gcc-fc304e563a7ade7c2675d06fddba51b9b0bfae2a.zip | |
* jcf-jump.c (options): New --print-constants option.
* gcj.texi (Invoking jcf-dump): Document --print-constants.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79558 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/java/ChangeLog | 3 | ||||
| -rw-r--r-- | gcc/java/gcj.texi | 5 | ||||
| -rw-r--r-- | gcc/java/jcf-dump.c | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 0ea4ce1247b..2f48c3527be 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 374bdf8bcc9..21c12ee6cc9 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 c28a3f43c4c..3d5f0c513d9 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 } }; |

