This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Java: gcj ABI compliance patch.
- To: egcs-patches at egcs dot cygnus dot com
- Subject: [PATCH] Java: gcj ABI compliance patch.
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Thu, 18 Nov 1999 17:52:27 -0800
I'm checking this patch in. For some targets, `layout_type' picks an
integer type for the TYPE_SIZE_UNIT INTEGER_CST which not compatible
with the one _Jv_AllocObject expects for its second argument.
./A
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.
Index: class.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/class.c,v
retrieving revision 1.47
diff -u -p -r1.47 class.c
--- class.c 1999/11/05 18:27:28 1.47
+++ class.c 1999/11/19 00:53:07
@@ -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