diff options
author | Anthony Green <green@redhat.com> | 2000-10-08 19:14:32 +0000 |
---|---|---|
committer | Anthony Green <green@gcc.gnu.org> | 2000-10-08 19:14:32 +0000 |
commit | 7fd9a5168344bc1d3621e263412e587d79969091 (patch) | |
tree | df0f29462dbc6428ed4962ed38ab1b9436b1dfb5 /gcc/java | |
parent | 6f298a0a2d021d79f1039dc35ddd0c93dd8913cf (diff) | |
download | gcc-7fd9a5168344bc1d3621e263412e587d79969091.zip gcc-7fd9a5168344bc1d3621e263412e587d79969091.tar.gz gcc-7fd9a5168344bc1d3621e263412e587d79969091.tar.bz2 |
class.c (layout_class): Handle case where superclass can't be layed out yet.
2000-10-07 Anthony Green <green@redhat.com>
* class.c (layout_class): Handle case where superclass can't be
layed out yet.
From-SVN: r36789
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/java/class.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index c392f6b..a1ef24f 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2000-10-07 Anthony Green <green@redhat.com> + + * class.c (layout_class): Handle case where superclass can't be + layed out yet. + 2000-10-07 Joseph S. Myers <jsm28@cam.ac.uk> * Makefile.in (keyword.h): Refer to GNU FTP site for updated @@ -152,7 +157,6 @@ Wed Sep 13 11:50:35 2000 Alexandre Petit-Bianco <apbianco@cygnus.com> (argument_types_convertible): Likewise. (patch_cast): Rename wfl_op parameter to avoid macro conflicts. ->>>>>>> 1.531 2000-09-14 Tom Tromey <tromey@cygnus.com> * lex.h: Use HAVE_ICONV_H, not HAVE_ICONV. diff --git a/gcc/java/class.c b/gcc/java/class.c index 3d4e583..b029da5 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -1839,8 +1839,10 @@ layout_class (this_class) if (super_class) { - super_class = maybe_layout_super_class (super_class, this_class); - if (TREE_CODE (TYPE_SIZE (super_class)) == ERROR_MARK) + tree maybe_super_class + = maybe_layout_super_class (super_class, this_class); + if (maybe_super_class == NULL + || TREE_CODE (TYPE_SIZE (maybe_super_class)) == ERROR_MARK) { TYPE_SIZE (this_class) = error_mark_node; CLASS_BEING_LAIDOUT (this_class) = 0; |