diff options
author | Andrew Haley <aph@redhat.com> | 2007-07-31 15:05:52 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2007-07-31 15:05:52 +0000 |
commit | 387cfbba39c9e620b9e7425dbee7c32f8ff5f5f0 (patch) | |
tree | 77d7eb285bfcbe2522e9774cf8c6e92ca56bd6a8 /libffi/testsuite | |
parent | 2bde7ae91a1edba5968c32ceb6f10b7b5ea98bfa (diff) | |
download | gcc-387cfbba39c9e620b9e7425dbee7c32f8ff5f5f0.zip gcc-387cfbba39c9e620b9e7425dbee7c32f8ff5f5f0.tar.gz gcc-387cfbba39c9e620b9e7425dbee7c32f8ff5f5f0.tar.bz2 |
re PR testsuite/32843 (libffi.call/return_sc.c)
2007-07-30 Andrew Haley <aph@redhat.com>
PR testsuite/32843
* src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
signed/unsigned int8/16.
* src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
Use a jump table.
Remove code to pop args from the stack after call.
Special-case signed/unsigned int8/16.
* testsuite/libffi.call/return_sc.c (main): Revert.
From-SVN: r127093
Diffstat (limited to 'libffi/testsuite')
-rw-r--r-- | libffi/testsuite/libffi.call/return_sc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libffi/testsuite/libffi.call/return_sc.c b/libffi/testsuite/libffi.call/return_sc.c index ddb2677..19608ee 100644 --- a/libffi/testsuite/libffi.call/return_sc.c +++ b/libffi/testsuite/libffi.call/return_sc.c @@ -30,7 +30,7 @@ int main (void) sc < (signed char) 127; sc++) { ffi_call(&cif, FFI_FN(return_sc), &rint, values); - CHECK((signed char) rint == sc); + CHECK(rint == (ffi_arg) sc); } exit(0); } |