aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>1999-11-19 01:43:21 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>1999-11-18 17:43:21 -0800
commit4832340ccc6f162ba03c9443cd869753c8b665b2 (patch)
tree66fbb45495496d80553981ae309d0b9450434344 /gcc/java/class.c
parent9c5c5c8a310cc791b2136e71b7ea4b658d5a8f32 (diff)
downloadgcc-4832340ccc6f162ba03c9443cd869753c8b665b2.zip
gcc-4832340ccc6f162ba03c9443cd869753c8b665b2.tar.gz
gcc-4832340ccc6f162ba03c9443cd869753c8b665b2.tar.bz2
class.c (layout_class): Always convert TYPE_SIZE_UNIT to int_type_node...
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
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index 57930fde..a270b2a 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