Skip to content

Commit

Permalink
Don't run EH tests with non-GNU compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
atgreen committed Jan 10, 2013
1 parent 56ba8d8 commit 5141543
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,5 +1,8 @@
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.
* configure.ac: Test for compiler vendor and don't use
AX_CFLAGS_WARN_ALL with the sun compiler.
Expand Down
12 changes: 8 additions & 4 deletions testsuite/libffi.special/special.exp
Expand Up @@ -23,10 +23,14 @@ global cxx_options

set cxx_options " -shared-libgcc -lstdc++"

dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.cc]] $cxx_options "-O0 -W -Wall"
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"
if { [string match $using_gcc "yes"] } {

dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.cc]] $cxx_options "-O0 -W -Wall"
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

Expand Down

0 comments on commit 5141543

Please sign in to comment.