jcf-parse.c (load_inner_classes): Check CLASS_LOADED_P before trying to load an inner...
authorPer Bothner <per@bothner.com>
Mon, 19 Mar 2001 22:00:29 +0000 (14:00 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Mon, 19 Mar 2001 22:00:29 +0000 (14:00 -0800)
* jcf-parse.c (load_inner_classes):  Check CLASS_LOADED_P
before trying to load an inner class.

From-SVN: r40638

gcc/java/ChangeLog
gcc/java/jcf-parse.c

index 77f98ca210d6f9f52d7c2f26e59daf6d91a30651..2a96eb553f66149eaff68e768ecd648665d36a6b 100644 (file)
@@ -1,5 +1,8 @@
 2001-03-19  Per Bothner  <per@bothner.com>
 
+       * jcf-parse.c (load_inner_classes):  Check CLASS_LOADED_P
+       before trying to load an inner class.
+
        Fixes to process to command-line .class files in two passes.
        * java-tree.h (JAVA_FILE_P, CLASS_FILE_P, ZIP_FILE_P):  New flags.
        (CLASS_FROM_CURRENTLY_COMPILED_SOURCE_P):  Rename to ..
index 84f268878cbd273a48007690bd61aeaf70dd3513..4dff49bcfc70c625c83317c162c3347a616715e0 100644 (file)
@@ -728,7 +728,8 @@ load_inner_classes (cur_class)
     {
       tree name = DECL_NAME (TREE_PURPOSE (current));
       tree decl = IDENTIFIER_GLOBAL_VALUE (name);
-      if (decl && !CLASS_BEING_LAIDOUT (TREE_TYPE (decl)))
+      if (decl && ! CLASS_LOADED_P (TREE_TYPE (decl))
+         && !CLASS_BEING_LAIDOUT (TREE_TYPE (decl)))
        load_class (name, 1);
     }
 }