]> gcc.gnu.org Git - gcc.git/commitdiff
testsuite: Use -mnofpu for rx-*-* in ieee testsuite [PR107046]
authorJakub Jelinek <jakub@redhat.com>
Tue, 6 Dec 2022 10:39:51 +0000 (11:39 +0100)
committerJakub Jelinek <jakub@redhat.com>
Tue, 6 Dec 2022 10:39:51 +0000 (11:39 +0100)
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.

gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp

index 6d3c371d6ef2fb0f40cda9e192218c9a3f7bcb21..fda34a7f935439dfaa6a5b0895841579cf287e54 100644 (file)
@@ -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"
This page took 0.064479 seconds and 5 git commands to generate.