Don't run EH tests with non-GNU compiler

This commit is contained in:
Anthony Green
2013-01-10 07:35:53 -05:00
parent 56ba8d86f4
commit 5141543000
2 changed files with 11 additions and 4 deletions

View File

@@ -1,5 +1,8 @@
2013-01-10 Anthony Green <green@moxielogic.com> 2013-01-10 Anthony Green <green@moxielogic.com>
* testsuite/libffi.special/special.exp: Only run exception
handling tests when using GNU compiler.
* m4/ax_compiler_vendor.m4: New file. * m4/ax_compiler_vendor.m4: New file.
* configure.ac: Test for compiler vendor and don't use * configure.ac: Test for compiler vendor and don't use
AX_CFLAGS_WARN_ALL with the sun compiler. AX_CFLAGS_WARN_ALL with the sun compiler.

View File

@@ -23,10 +23,14 @@ global cxx_options
set cxx_options " -shared-libgcc -lstdc++" set cxx_options " -shared-libgcc -lstdc++"
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.cc]] $cxx_options "-O0 -W -Wall" if { [string match $using_gcc "yes"] } {
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.cc]] $cxx_options "-O2"
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.cc]] $cxx_options "-O3" dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.cc]] $cxx_options "-O0 -W -Wall"
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.cc]] $cxx_options "-Os" dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.cc]] $cxx_options "-O2"
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.cc]] $cxx_options "-O3"
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.cc]] $cxx_options "-Os"
}
dg-finish dg-finish