This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH to java/jcf-dump.c


Per Bothner wrote:

I checked (into mainline) this patch:
http://gcc.gnu.org/ml/java/2004-03/msg00146.html

I also checked in a follow-on patch, as attached.
This adds a --print-constants flag, and updates the manual.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/
2004-03-16  Per Bothner  <per@bothner.com>

	* jcf-jump.c (options):  New --print-constants option.
	* gcj.texi (Invoking jcf-dump):  Document --print-constants.

Index: jcf-dump.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-dump.c,v
retrieving revision 1.59
diff -u -r1.59 jcf-dump.c
--- jcf-dump.c	16 Mar 2004 22:36:43 -0000	1.59
+++ jcf-dump.c	16 Mar 2004 23:59:46 -0000
@@ -874,7 +874,8 @@
   { "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 }
 };
 
Index: gcj.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/gcj.texi,v
retrieving revision 1.57
diff -u -r1.57 gcj.texi
--- gcj.texi	28 Aug 2003 22:11:51 -0000	1.57
+++ gcj.texi	16 Mar 2004 23:59:47 -0000
@@ -760,6 +760,10 @@
 @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 @@
 
 @item -v, --verbose
 Print extra information while running.
+Implies @code{--print-constants}.
 @end table
 
 @c man end

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]