2009-06-08 Andrew Haley <aph@redhat.com>

* testsuite/libffi.call/err_bad_abi.c: Add xfails.
	* testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
	* testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
	* testsuite/libffi.call/err_bad_typedef.c: Add xfails.

	* testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
	* testsuite/libffi.call/stret_medium.c: Likewise.
	* testsuite/libffi.call/stret_large2.c: Likewise.
	* testsuite/libffi.call/stret_large.c:  Likewise.
This commit is contained in:
aph
2009-06-08 16:50:49 +00:00
parent 25723e7141
commit b2a54c100c
9 changed files with 25 additions and 13 deletions

View File

@@ -1,3 +1,15 @@
2009-06-08 Andrew Haley <aph@redhat.com>
* testsuite/libffi.call/err_bad_abi.c: Add xfails.
* testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
* testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
* testsuite/libffi.call/err_bad_typedef.c: Add xfails.
* testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
* testsuite/libffi.call/stret_medium.c: Likewise.
* testsuite/libffi.call/stret_large2.c: Likewise.
* testsuite/libffi.call/stret_large.c: Likewise.
2009-06-05 Andrew Haley <aph@redhat.com> 2009-06-05 Andrew Haley <aph@redhat.com>
* src/x86/win32.S (_ffi_closure_STDCALL): Import from gcc. * src/x86/win32.S (_ffi_closure_STDCALL): Import from gcc.

View File

@@ -66,7 +66,7 @@ int main(int argc __UNUSED__, char** argv __UNUSED__)
CHECK(ffi_prep_closure(pcl, &cif, closure_test_gn, NULL) == FFI_OK); CHECK(ffi_prep_closure(pcl, &cif, closure_test_gn, NULL) == FFI_OK);
((void*(*)(Dbls))(pcl))(arg); ((void*(*)(Dbls))(pcl))(arg);
/* { dg-output "1.0 2.0\n" } */ /* { dg-output "1.0 2.0\n" { xfail x86_64-*-linux-* } } */
closure_test_fn(arg); closure_test_fn(arg);
/* { dg-output "1.0 2.0\n" } */ /* { dg-output "1.0 2.0\n" } */

View File

@@ -49,9 +49,9 @@ int main (void)
args[2] = NULL; args[2] = NULL;
ffi_call(&cif, FFI_FN(printf), &res, args); ffi_call(&cif, FFI_FN(printf), &res, args);
// { dg-output "7.0" } // { dg-output "7.0" { xfail i*86-*-linux-* x86_64-*-linux-* } }
printf("res: %d\n", (int) res); printf("res: %d\n", (int) res);
// { dg-output "\nres: 4" } // { dg-output "\nres: 4" { xfail i*86-*-linux-* x86_64-*-linux-* } }
CHECK(ffi_prep_closure(pcl, &cif, cls_longdouble_va_fn, NULL) == FFI_OK); CHECK(ffi_prep_closure(pcl, &cif, cls_longdouble_va_fn, NULL) == FFI_OK);

View File

@@ -4,7 +4,7 @@
PR: none. PR: none.
Originator: Blake Chaffin 6/6/2007 */ Originator: Blake Chaffin 6/6/2007 */
/* { dg-do run { xfail mips*-*-* arm*-*-* strongarm*-*-* xscale*-*-* } } */ /* { dg-do run { xfail mips*-*-* arm*-*-* strongarm*-*-* xscale*-*-* i*86-*-linux-* x86_64-*-linux-* } } */
#include "ffitest.h" #include "ffitest.h"
static void static void

View File

@@ -4,7 +4,7 @@
PR: none. PR: none.
Originator: Blake Chaffin 6/6/2007 */ Originator: Blake Chaffin 6/6/2007 */
/* { dg-do run { xfail mips*-*-* arm*-*-* strongarm*-*-* xscale*-*-* } } */ /* { dg-do run { xfail mips*-*-* arm*-*-* strongarm*-*-* xscale*-*-* i*86-*-linux-* x86_64-*-linux-* } } */
#include "ffitest.h" #include "ffitest.h"
int main (void) int main (void)

View File

@@ -6,7 +6,7 @@
PR: none. PR: none.
Originator: Blake Chaffin 6/21/2007 */ Originator: Blake Chaffin 6/21/2007 */
/* { dg-do run { xfail mips*-*-* arm*-*-* strongarm*-*-* xscale*-*-* } } */ /* { dg-do run { xfail mips*-*-* arm*-*-* strongarm*-*-* xscale*-*-* } } */
#include "ffitest.h" #include "ffitest.h"
// 13 FPRs: 104 bytes // 13 FPRs: 104 bytes
@@ -60,7 +60,7 @@ struct_108byte cls_struct_108byte_fn(
} }
static void static void
cls_struct_108byte_gn(ffi_cif* cif, void* resp, void** args, void* userdata) cls_struct_108byte_gn(ffi_cif* cif __UNUSED__, void* resp, void** args, void* userdata __UNUSED__)
{ {
struct_108byte b0, b1, b2, b3; struct_108byte b0, b1, b2, b3;

View File

@@ -6,7 +6,7 @@
PR: none. PR: none.
Originator: Blake Chaffin 6/21/2007 */ Originator: Blake Chaffin 6/21/2007 */
/* { dg-do run { xfail mips*-*-* arm*-*-* strongarm*-*-* xscale*-*-* } } */ /* { dg-do run { xfail mips*-*-* arm*-*-* strongarm*-*-* xscale*-*-* } } */
#include "ffitest.h" #include "ffitest.h"
// 13 FPRs: 104 bytes // 13 FPRs: 104 bytes
@@ -62,7 +62,7 @@ struct_116byte cls_struct_116byte_fn(
} }
static void static void
cls_struct_116byte_gn(ffi_cif* cif, void* resp, void** args, void* userdata) cls_struct_116byte_gn(ffi_cif* cif __UNUSED__, void* resp, void** args, void* userdata __UNUSED__)
{ {
struct_116byte b0, b1, b2, b3; struct_116byte b0, b1, b2, b3;

View File

@@ -6,7 +6,7 @@
PR: none. PR: none.
Originator: Blake Chaffin 6/21/2007 */ Originator: Blake Chaffin 6/21/2007 */
/* { dg-do run { xfail mips*-*-* arm*-*-* strongarm*-*-* xscale*-*-* } } */ /* { dg-do run { xfail mips*-*-* arm*-*-* strongarm*-*-* xscale*-*-* } } */
#include "ffitest.h" #include "ffitest.h"
typedef struct struct_72byte { typedef struct struct_72byte {
@@ -46,7 +46,7 @@ struct_72byte cls_struct_72byte_fn(
} }
static void static void
cls_struct_72byte_gn(ffi_cif* cif, void* resp, void** args, void* userdata) cls_struct_72byte_gn(ffi_cif* cif __UNUSED__, void* resp, void** args, void* userdata __UNUSED__)
{ {
struct_72byte b0, b1, b2, b3; struct_72byte b0, b1, b2, b3;

View File

@@ -6,7 +6,7 @@
PR: none. PR: none.
Originator: Blake Chaffin 6/21/2007 */ Originator: Blake Chaffin 6/21/2007 */
/* { dg-do run { xfail mips*-*-* arm*-*-* strongarm*-*-* xscale*-*-* } } */ /* { dg-do run { xfail mips*-*-* arm*-*-* strongarm*-*-* xscale*-*-* } } */
#include "ffitest.h" #include "ffitest.h"
typedef struct struct_72byte { typedef struct struct_72byte {
@@ -46,7 +46,7 @@ struct_72byte cls_struct_72byte_fn(
} }
static void static void
cls_struct_72byte_gn(ffi_cif* cif, void* resp, void** args, void* userdata) cls_struct_72byte_gn(ffi_cif* cif __UNUSED__, void* resp, void** args, void* userdata __UNUSED__)
{ {
struct_72byte b0, b1, b2, b3; struct_72byte b0, b1, b2, b3;