summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-14 18:59:01 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-14 18:59:01 +0000
commit7df111ad7fa16b8221037af1cdaa42e0e667e16e (patch)
tree2e862493204f9b5ada6c32ae2494187046c50470
parent149417bc1e319b1d9c76589f06c10ce480c7adf7 (diff)
downloadgcc-7df111ad7fa16b8221037af1cdaa42e0e667e16e.tar.gz
* class.c (make_class_data): Check that super is compiled before
building class reference to it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61292 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/class.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index d1ad2011525..73577eda7cf 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-14 Tom Tromey <tromey@redhat.com>
+
+ * class.c (make_class_data): Check that super is compiled before
+ building class reference to it.
+
2003-01-14 Andrew Haley <aph@redhat.com>
* decl.c (java_init_decl_processing): _Jv_NewMultiArray is a
diff --git a/gcc/java/class.c b/gcc/java/class.c
index b5746718f28..2018d664736 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -1497,7 +1497,8 @@ make_class_data (tree type)
super = CLASSTYPE_SUPER (type);
if (super == NULL_TREE)
super = null_pointer_node;
- else if (assume_compiled (IDENTIFIER_POINTER (DECL_NAME (type_decl))))
+ else if (assume_compiled (IDENTIFIER_POINTER (DECL_NAME (type_decl)))
+ && assume_compiled (IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (super)))))
super = build_class_ref (super);
else
{