Commit 1679340f by Andrew Haley Committed by Andrew Haley

re PR java/17586 (kawa build fails with ICE)

2004-09-28  Andrew Haley  <aph@redhat.com>

	PR java/17586
	* jcf-parse.c (load_class): Don't try to read a class that we've
	already read.

From-SVN: r88239
parent cc15e98f
2004-09-28 Andrew Haley <aph@redhat.com> 2004-09-28 Andrew Haley <aph@redhat.com>
PR java/17586
* jcf-parse.c (load_class): Don't try to read a class that we've
already read.
2004-09-28 Andrew Haley <aph@redhat.com>
* jcf-parse.c (load_class): Back out previous broken patch. * jcf-parse.c (load_class): Back out previous broken patch.
2004-09-28 Andrew Haley <aph@redhat.com> 2004-09-28 Andrew Haley <aph@redhat.com>
......
...@@ -567,6 +567,7 @@ load_class (tree class_or_name, int verbose) ...@@ -567,6 +567,7 @@ load_class (tree class_or_name, int verbose)
{ {
tree name, saved; tree name, saved;
int class_loaded; int class_loaded;
tree class_decl;
/* class_or_name can be the name of the class we want to load */ /* class_or_name can be the name of the class we want to load */
if (TREE_CODE (class_or_name) == IDENTIFIER_NODE) if (TREE_CODE (class_or_name) == IDENTIFIER_NODE)
...@@ -577,12 +578,12 @@ load_class (tree class_or_name, int verbose) ...@@ -577,12 +578,12 @@ load_class (tree class_or_name, int verbose)
name = TYPE_NAME (TREE_PURPOSE (class_or_name)); name = TYPE_NAME (TREE_PURPOSE (class_or_name));
/* Or it's a type in the making */ /* Or it's a type in the making */
else else
{ name = DECL_NAME (TYPE_NAME (class_or_name));
/* If the class is from source code, then it must already be loaded. */
if (CLASS_FROM_SOURCE_P (class_or_name)) /* If the class is from source code, then it must already be loaded. */
return; class_decl = IDENTIFIER_CLASS_VALUE (name);
name = DECL_NAME (TYPE_NAME (class_or_name)); if (class_decl && CLASS_FROM_SOURCE_P (TREE_TYPE (class_decl)))
} return;
saved = name; saved = name;
while (1) while (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