mirror of
https://github.com/partic2/libffi
synced 2026-11-09 17:47:19 +00:00
Remove gccbug detection. GCC is good now.
This commit is contained in:
@@ -24,11 +24,6 @@ load_lib libgloss.exp
|
||||
load_gcc_lib target-libpath.exp
|
||||
load_gcc_lib wrapper.exp
|
||||
|
||||
proc check_effective_target_gccbug { } {
|
||||
global has_gccbug
|
||||
return $has_gccbug
|
||||
}
|
||||
|
||||
# Return 1 if the target matches the effective target 'arg', 0 otherwise.
|
||||
# This can be used with any check_* proc that takes no argument and
|
||||
# returns only 1 or 0. It could be used with check_* procs that take
|
||||
@@ -482,7 +477,6 @@ proc libffi-dg-runtest { testcases default-extra-flags } {
|
||||
|
||||
proc run-many-tests { testcases extra_flags } {
|
||||
global compiler_vendor
|
||||
global has_gccbug
|
||||
global env
|
||||
switch $compiler_vendor {
|
||||
"clang" {
|
||||
@@ -498,7 +492,7 @@ proc run-many-tests { testcases extra_flags } {
|
||||
if [info exists env(LIBFFI_TEST_OPTIMIZATION)] {
|
||||
set optimizations [ list $env(LIBFFI_TEST_OPTIMIZATION) ]
|
||||
} else {
|
||||
set optimizations { "-O0" "-O2" "-O2 -fomit-frame-pointer" }
|
||||
set optimizations { "-O0" "-O2" }
|
||||
}
|
||||
}
|
||||
default {
|
||||
@@ -544,17 +538,6 @@ proc run-many-tests { testcases extra_flags } {
|
||||
foreach opt $optimizations {
|
||||
foreach abi $abis {
|
||||
set options [concat $common $opt $abi]
|
||||
set has_gccbug false;
|
||||
if { [string match $compiler_vendor "gnu"] \
|
||||
&& [string match "*MSABI*" $abi] \
|
||||
&& ( ( [string match "*DGTEST=57 *" $common] \
|
||||
&& [string match "*call.c*" $testname] ) \
|
||||
|| ( [string match "*DGTEST=54 *" $common] \
|
||||
&& [string match "*callback*" $testname] ) \
|
||||
|| [string match "*DGTEST=55 *" $common] \
|
||||
|| [string match "*DGTEST=56 *" $common] ) } then {
|
||||
set has_gccbug true;
|
||||
}
|
||||
verbose "Testing $testname, $options" 1
|
||||
dg-test $test $options ""
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ libffi-init
|
||||
|
||||
global srcdir subdir
|
||||
global compiler_vendor
|
||||
global has_gccbug
|
||||
|
||||
# The conversion of this testsuite into a dejagnu compatible testsuite
|
||||
# was done in a pretty lazy fashion, and requires the use of compiler
|
||||
|
||||
@@ -16,8 +16,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
**/
|
||||
|
||||
/* { dg-do run { xfail gccbug } }*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -16,8 +16,6 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* { dg-do run { xfail gccbug } }*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
Reference in New Issue
Block a user