diff options
Diffstat (limited to 'testsuite/libffi.call/call.exp')
-rw-r--r-- | testsuite/libffi.call/call.exp | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/testsuite/libffi.call/call.exp b/testsuite/libffi.call/call.exp index 5177f07f..13ba2bdc 100644 --- a/testsuite/libffi.call/call.exp +++ b/testsuite/libffi.call/call.exp @@ -19,21 +19,32 @@ libffi-init global srcdir subdir -set tlist [lsearch -inline -all -not -glob [lsort [glob -nocomplain -- $srcdir/$subdir/*.{c,cc}]] *complex*] -set ctlist [lsearch -inline -all -glob [lsort [glob -nocomplain -- $srcdir/$subdir/*.{c,cc}]] *complex*] +if { [string match $compiler_vendor "microsoft"] } { + # -wd4005 macro redefinition + # -wd4244 implicit conversion to type of smaller size + # -wd4305 truncation to smaller type + # -wd4477 printf %lu of uintptr_t + # -wd4312 implicit conversion to type of greater size + # -wd4311 pointer truncation to unsigned long + # -EHsc C++ Exception Handling (no SEH exceptions) + set additional_options "-wd4005 -wd4244 -wd4305 -wd4477 -wd4312 -wd4311 -EHsc"; +} else { + set additional_options ""; +} -run-many-tests $tlist "" +set tlist [lsort [glob -nocomplain -- $srcdir/$subdir/*.c]] -if { ![istarget s390*] } { +run-many-tests $tlist $additional_options - foreach test $ctlist { - unsupported "$test" - } +set tlist [lsort [glob -nocomplain -- $srcdir/$subdir/*.cc]] +# No C++ for or1k +if { [istarget "or1k-*-*"] } { + foreach test $tlist { + unsupported "$test" + } } else { - - run-many-tests $ctlist "" - + run-many-tests $tlist $additional_options } dg-finish |