diff options
author | Jakub Jelinek <jakub@redhat.com> | 2022-12-06 11:39:51 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2022-12-06 11:39:51 +0100 |
commit | 8872df353884fec6d7ff0e8bf8eee356439ec8d8 (patch) | |
tree | 32724a841a4fc61383445fc1f7648523408a84d1 | |
parent | 926f5059bb8d295e2b68cea7c9af53606946eb1a (diff) | |
download | gcc-8872df353884fec6d7ff0e8bf8eee356439ec8d8.zip gcc-8872df353884fec6d7ff0e8bf8eee356439ec8d8.tar.gz gcc-8872df353884fec6d7ff0e8bf8eee356439ec8d8.tar.bz2 |
testsuite: Use -mnofpu for rx-*-* in ieee testsuite [PR107046]
add_options_for_ieee has:
if { [istarget alpha*-*-*]
|| [istarget sh*-*-*] } {
return "$flags -mieee"
}
if { [istarget rx-*-*] } {
return "$flags -mnofpu"
}
but ieee.exp doesn't use add_options_for_ieee, instead it has:
if { [istarget "alpha*-*-*"]
|| [istarget "sh*-*-*"] } then {
lappend additional_flags "-mieee"
}
among other things (plus -ffloat-store on some arches etc.).
The following patch adds the rx -mnofpu similarly in the hope
of fixing ieee.exp FAILs on rx.
Preapproved in the PR by Jeff, committed to trunk.
2022-12-06 Jakub Jelinek <jakub@redhat.com>
PR testsuite/107046
* gcc.c-torture/execute/ieee/ieee.exp: For rx-*-* append
-mnofpu.
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp b/gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp index 6d3c371..fda34a7 100644 --- a/gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp @@ -52,6 +52,9 @@ if { [istarget "alpha*-*-*"] || [istarget "sh*-*-*"] } then { lappend additional_flags "-mieee" } +if [istarget rx-*-*] then { + lappend additional_flags "-mnofpu" +} if { ![check_effective_target_signal] } { lappend additional_flags "-DSIGNAL_SUPPRESS" |