aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/java-tree.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@gcc.gnu.org>2004-07-09 18:36:02 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2004-07-09 18:36:02 +0000
commit85fd2947bd37c39eb2b8b237359743ae0ecbb657 (patch)
treeb87da749b2399f55835e9ab316900e5ad252f294 /gcc/java/java-tree.h
parent6512c54ac4e97aa257dce77ef5fea177dee46e42 (diff)
downloadgcc-85fd2947bd37c39eb2b8b237359743ae0ecbb657.zip
gcc-85fd2947bd37c39eb2b8b237359743ae0ecbb657.tar.gz
gcc-85fd2947bd37c39eb2b8b237359743ae0ecbb657.tar.bz2
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
Diffstat (limited to 'gcc/java/java-tree.h')
-rw-r--r--gcc/java/java-tree.h3
1 files changed, 2 insertions, 1 deletions
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) \