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]

gcj patch: print interface instead of class



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


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