This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
gcj patch: print interface instead of class
- To: gcc-patches at gcc dot gnu dot org
- Subject: gcj patch: print interface instead of class
- From: Anthony Green <green at cygnus dot com>
- Date: Sat, 6 Nov 1999 09:57:34 -0800 (PST)
When compiling bytecode, jc1 would print "class Foo" even if Foo
was an interface. The source code compiler gets this right.
1999-11-06 Anthony Green <green@cygnus.com>
* jcf-parse.c (jcf_parse): Display `interface' when appropriate.
Index: gcc/java/jcf-parse.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/jcf-parse.c,v
retrieving revision 1.35
diff -u -r1.35 jcf-parse.c
--- jcf-parse.c 1999/10/19 23:05:28 1.35
+++ jcf-parse.c 1999/11/06 17:53:57
@@ -612,7 +612,8 @@
if (main_class == NULL_TREE)
main_class = current_class;
if (! quiet_flag && TYPE_NAME (current_class))
- fprintf (stderr, " class %s",
+ fprintf (stderr, " %s %s",
+ (jcf->access_flags & ACC_INTERFACE) ? "interface" : "class",
IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (current_class))));
if (CLASS_LOADED_P (current_class))
return;
--
Anthony Green Cygnus Solutions
Sunnyvale, California