class.c (layout_class): Always convert TYPE_SIZE_UNIT to int_type_node...
authorAlexandre Petit-Bianco <apbianco@cygnus.com>
Fri, 19 Nov 1999 01:43:21 +0000 (01:43 +0000)
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>
Fri, 19 Nov 1999 01:43:21 +0000 (17:43 -0800)
Wed Nov 17 21:09:28 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* class.c (layout_class): Always convert TYPE_SIZE_UNIT to
  int_type_node: that's what `_Jv_AllocObject' expects.

From-SVN: r30581

gcc/java/ChangeLog
gcc/java/class.c

index e2d8fa8..36b3a2b 100644 (file)
@@ -1,3 +1,8 @@
+Wed Nov 17 21:09:28 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * class.c (layout_class): Always convert TYPE_SIZE_UNIT to
+       int_type_node: that's what `_Jv_AllocObject' expects.
+
 1999-11-09  Tom Tromey  <tromey@cygnus.com>
 
        * jcf-path.c: Include <sys/stat.h>.
index 57930fd..a270b2a 100644 (file)
@@ -1519,6 +1519,10 @@ layout_class (this_class)
     }
 
   layout_type (this_class);
+
+  /* Convert the size back to an SI integer value */
+  TYPE_SIZE_UNIT (this_class) = 
+    fold (convert (int_type_node, TYPE_SIZE_UNIT (this_class)));
 }
 
 void