Commit 80fc2e84 by Per Bothner Committed by Per Bothner

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
parent 54646811
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 ..
......
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment