From 85fd2947bd37c39eb2b8b237359743ae0ecbb657 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Fri, 9 Jul 2004 18:36:02 +0000 Subject: class.c (make_class): Do not create binfo here. * class.c (make_class): Do not create binfo here. (set_super_info): Create it here. * java-tree.h (CLASS_HAS_SUPER): Cope with lack of a binfo. From-SVN: r84388 --- gcc/java/java-tree.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/java/java-tree.h') diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index 1920232..1fef832 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -122,7 +122,8 @@ struct JCF; /* True if the class whose TYPE_BINFO this is has a superclass. (True of all classes except Object.) */ #define CLASS_HAS_SUPER_FLAG(BINFO) BINFO_FLAG_1 (BINFO) -#define CLASS_HAS_SUPER(TYPE) CLASS_HAS_SUPER_FLAG (TYPE_BINFO (TYPE)) +#define CLASS_HAS_SUPER(TYPE) \ + (TYPE_BINFO (TYPE) && CLASS_HAS_SUPER_FLAG (TYPE_BINFO (TYPE))) /* Return the supertype of class TYPE, or NULL_TREE is it has none. */ #define CLASSTYPE_SUPER(TYPE) (CLASS_HAS_SUPER (TYPE) \ -- cgit v1.1