* class.c (inherits_from_p): Do load_class if needed.
authorPer Bothner <per@bothner.com>
Sun, 12 Jun 2005 19:54:59 +0000 (12:54 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Sun, 12 Jun 2005 19:54:59 +0000 (12:54 -0700)
From-SVN: r100860

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

index eeb8af49355f455c4b9c2a191cbac50fbbf73532..c16e1ef849bc10958e5e6b80148481cde12cfc6d 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 68732b74dd56a6c9148a10d24dae9a1f1ef3c046..a555bf09882a2c19b20c411ab0db6b5572b11158 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;