diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2011-02-09 10:01:07 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2011-02-09 10:01:07 +0000 |
commit | 1bbb474148a83811771b36b76a62e3f59aae5ba2 (patch) | |
tree | 2620eee4123563ad7bd5c1fbe01cd380f4580041 /libffi/testsuite | |
parent | 88c98057c8122dc4bb768fb66ca3fa445f427db3 (diff) | |
download | gcc-1bbb474148a83811771b36b76a62e3f59aae5ba2.zip gcc-1bbb474148a83811771b36b76a62e3f59aae5ba2.tar.gz gcc-1bbb474148a83811771b36b76a62e3f59aae5ba2.tar.bz2 |
re PR libffi/46661 (32-bit cls_pointer.c, cls_pointer_stack.c FAIL on IRIX 6.5)
PR libffi/46661
* testsuite/libffi.call/cls_pointer.c (main): Cast void * to
uintptr_t first.
* testsuite/libffi.call/cls_pointer_stack.c (main): Likewise.
From-SVN: r169963
Diffstat (limited to 'libffi/testsuite')
-rw-r--r-- | libffi/testsuite/libffi.call/cls_pointer.c | 2 | ||||
-rw-r--r-- | libffi/testsuite/libffi.call/cls_pointer_stack.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libffi/testsuite/libffi.call/cls_pointer.c b/libffi/testsuite/libffi.call/cls_pointer.c index fadd353..cf03993 100644 --- a/libffi/testsuite/libffi.call/cls_pointer.c +++ b/libffi/testsuite/libffi.call/cls_pointer.c @@ -65,7 +65,7 @@ int main (void) CHECK(ffi_prep_closure_loc(pcl, &cif, cls_pointer_gn, NULL, code) == FFI_OK); - res = (ffi_arg)((void*(*)(void*, void*))(code))(arg1, arg2); + res = (ffi_arg)(uintptr_t)((void*(*)(void*, void*))(code))(arg1, arg2); /* { dg-output "\n0x12345678 0x89abcdef: 0x9be02467" } */ printf("res: 0x%08x\n", (unsigned int) res); /* { dg-output "\nres: 0x9be02467" } */ diff --git a/libffi/testsuite/libffi.call/cls_pointer_stack.c b/libffi/testsuite/libffi.call/cls_pointer_stack.c index 697f271..d631cf8 100644 --- a/libffi/testsuite/libffi.call/cls_pointer_stack.c +++ b/libffi/testsuite/libffi.call/cls_pointer_stack.c @@ -129,7 +129,7 @@ int main (void) CHECK(ffi_prep_closure_loc(pcl, &cif, cls_pointer_gn, NULL, code) == FFI_OK); - res = (ffi_arg)((void*(*)(void*, void*))(code))(arg1, arg2); + res = (ffi_arg)(uintptr_t)((void*(*)(void*, void*))(code))(arg1, arg2); printf("res: 0x%08x\n", (unsigned int) res); // { dg-output "\n0x01234567 0x89abcdef: 0x8acf1356" } |