OSDN Git Service

* class.c (inherits_from_p): Do load_class if needed.
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Jun 2005 19:54:59 +0000 (19:54 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Jun 2005 19:54:59 +0000 (19:54 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100860 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/class.c

index eeb8af4..c16e1ef 100644 (file)
@@ -1,3 +1,7 @@
+2005-06-12  Per Bothner  <per@bothner.com>
+
+       * class.c (inherits_from_p): Do load_class if needed.
+
 2005-06-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * gjavah.c (error): Add ATTRIBUTE_PRINTF_1.
index 68732b7..a555bf0 100644 (file)
@@ -549,6 +549,8 @@ inherits_from_p (tree type1, tree type2)
     {
       if (type1 == type2)
        return 1;
+      if (! CLASS_LOADED_P (type1))
+       load_class (type1, 1);
       type1 = CLASSTYPE_SUPER (type1);
     }
   return 0;