This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[Patch] libffi testsuite: Correct some type specifiers.
- From: David Daney <ddaney at avtrex dot com>
- To: GCJ-patches <java-patches at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: andreast at gcc dot gnu dot org
- Date: Tue, 07 Aug 2007 09:25:55 -0700
- Subject: [Patch] libffi testsuite: Correct some type specifiers.
Whilst hacking things up to get MIPS64 working better in libffi, I came
across several test cases where structure elements were declared as type
'int' but the libffi type specifier identified them as uint32.
This patch corrects some (but probably not all) of these incongruities.
Tested on x86_64-pc-linux-gnu and Mips64-linux.
OK to commit?
2007-08-07 David Daney <ddaney@avtrex.com>
* testsuite/libffi.call/nested_struct.c (main): Use correct type
specifiers in structure specification.
* testsuite/libffi.call/cls_24byte.c (main): Ditto.
* testsuite/libffi.call/cls_12byte.c (main): Ditto.
* testsuite/libffi.call/cls_16byte.c (main): Ditto.
Index: testsuite/libffi.call/nested_struct.c
===================================================================
--- testsuite/libffi.call/nested_struct.c (revision 127010)
+++ testsuite/libffi.call/nested_struct.c (working copy)
@@ -108,10 +108,10 @@ int main (void)
cls_struct_fields[0] = &ffi_type_double;
cls_struct_fields[1] = &ffi_type_float;
- cls_struct_fields[2] = &ffi_type_uint32;
+ cls_struct_fields[2] = &ffi_type_sint32;
cls_struct_fields[3] = NULL;
- cls_struct_fields1[0] = &ffi_type_uint32;
+ cls_struct_fields1[0] = &ffi_type_sint32;
cls_struct_fields1[1] = &ffi_type_double;
cls_struct_fields1[2] = &ffi_type_float;
cls_struct_fields1[3] = NULL;
Index: testsuite/libffi.call/cls_24byte.c
===================================================================
--- testsuite/libffi.call/cls_24byte.c (revision 127010)
+++ testsuite/libffi.call/cls_24byte.c (working copy)
@@ -82,7 +82,7 @@ int main (void)
cls_struct_fields[0] = &ffi_type_double;
cls_struct_fields[1] = &ffi_type_double;
- cls_struct_fields[2] = &ffi_type_uint32;
+ cls_struct_fields[2] = &ffi_type_sint32;
cls_struct_fields[3] = &ffi_type_float;
cls_struct_fields[4] = NULL;
Index: testsuite/libffi.call/cls_12byte.c
===================================================================
--- testsuite/libffi.call/cls_12byte.c (revision 127010)
+++ testsuite/libffi.call/cls_12byte.c (working copy)
@@ -66,9 +66,9 @@ int main (void)
struct cls_struct_12byte j_dbl = { 1, 5, 3 };
struct cls_struct_12byte res_dbl;
- cls_struct_fields[0] = &ffi_type_uint32;
- cls_struct_fields[1] = &ffi_type_uint32;
- cls_struct_fields[2] = &ffi_type_uint32;
+ cls_struct_fields[0] = &ffi_type_sint32;
+ cls_struct_fields[1] = &ffi_type_sint32;
+ cls_struct_fields[2] = &ffi_type_sint32;
cls_struct_fields[3] = NULL;
dbl_arg_types[0] = &cls_struct_type;
Index: testsuite/libffi.call/cls_16byte.c
===================================================================
--- testsuite/libffi.call/cls_16byte.c (revision 127010)
+++ testsuite/libffi.call/cls_16byte.c (working copy)
@@ -67,9 +67,9 @@ int main (void)
struct cls_struct_16byte j_dbl = { 1, 9.0, 3 };
struct cls_struct_16byte res_dbl;
- cls_struct_fields[0] = &ffi_type_uint32;
+ cls_struct_fields[0] = &ffi_type_sint32;
cls_struct_fields[1] = &ffi_type_double;
- cls_struct_fields[2] = &ffi_type_uint32;
+ cls_struct_fields[2] = &ffi_type_sint32;
cls_struct_fields[3] = NULL;
dbl_arg_types[0] = &cls_struct_type;