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
This commit is contained in:
parent
88c98057c8
commit
1bbb474148
3 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
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.
|
||||
|
||||
2011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing.
|
||||
|
|
|
@ -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" } */
|
||||
|
|
|
@ -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" }
|
||||
|
|
Loading…
Add table
Reference in a new issue