summaryrefslogtreecommitdiff
path: root/gcc/java/jcf-parse.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2001-03-19 14:00:29 -0800
committerPer Bothner <bothner@gcc.gnu.org>2001-03-19 14:00:29 -0800
commit80fc2e84d95714c998b2855250b3d440f38620aa (patch)
tree46a67acfc854db09ad9b1b75802c49be347dbb7e /gcc/java/jcf-parse.c
parent546468116ecab0398f68c844cdc553ae886aad7d (diff)
downloadgcc-80fc2e84d95714c998b2855250b3d440f38620aa.tar.gz
jcf-parse.c (load_inner_classes): Check CLASS_LOADED_P before trying to load an inner class.
* jcf-parse.c (load_inner_classes): Check CLASS_LOADED_P before trying to load an inner class. From-SVN: r40638
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r--gcc/java/jcf-parse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index 84f268878cb..4dff49bcfc7 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -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);
}
}