From 4832340ccc6f162ba03c9443cd869753c8b665b2 Mon Sep 17 00:00:00 2001 From: Alexandre Petit-Bianco Date: Fri, 19 Nov 1999 01:43:21 +0000 Subject: [PATCH] class.c (layout_class): Always convert TYPE_SIZE_UNIT to int_type_node... Wed Nov 17 21:09:28 1999 Alexandre Petit-Bianco * 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 | 5 +++++ gcc/java/class.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index e2d8fa868cc..36b3a2bcf34 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +Wed Nov 17 21:09:28 1999 Alexandre Petit-Bianco + + * class.c (layout_class): Always convert TYPE_SIZE_UNIT to + int_type_node: that's what `_Jv_AllocObject' expects. + 1999-11-09 Tom Tromey * jcf-path.c: Include . diff --git a/gcc/java/class.c b/gcc/java/class.c index 57930fde0bf..a270b2acc6a 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -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 -- 2.30.2