Commit 83010c5a by Richard Henderson Committed by Richard Henderson

fortran-torture.exp (fortran-torture-execute): Honor additional_flags set by alternate driver.

        * lib/fortran-torture.exp (fortran-torture-execute): Honor
        additional_flags set by alternate driver.
        (ieee-options): New procedure.
        * gfortran.fortran-torture/execute/intrinsic_fraction_exponent.x: New.
        * gfortran.fortran-torture/execute/intrinsic_nearest.x: New.
        * gfortran.fortran-torture/execute/intrinsic_set_exponent.x: New.
        * gfortran.fortran-torture/execute/nan_inf_fmt.x: New.

From-SVN: r86761
parent f25605ac
2004-08-30 Richard Henderson <rth@redhat.com> 2004-08-30 Richard Henderson <rth@redhat.com>
* lib/fortran-torture.exp (fortran-torture-execute): Honor
additional_flags set by alternate driver.
(ieee-options): New procedure.
* gfortran.fortran-torture/execute/intrinsic_fraction_exponent.x: New.
* gfortran.fortran-torture/execute/intrinsic_nearest.x: New.
* gfortran.fortran-torture/execute/intrinsic_set_exponent.x: New.
* gfortran.fortran-torture/execute/nan_inf_fmt.x: New.
2004-08-30 Richard Henderson <rth@redhat.com>
* lib/f-torture.exp: Remove. * lib/f-torture.exp: Remove.
2004-08-29 Mark Mitchell <mark@codesourcery.com> 2004-08-29 Mark Mitchell <mark@codesourcery.com>
......
lappend additional_flags [ieee-options]
return 0
lappend additional_flags [ieee-options]
return 0
...@@ -139,6 +139,7 @@ proc fortran-torture-execute { src } { ...@@ -139,6 +139,7 @@ proc fortran-torture-execute { src } {
global TORTURE_OPTIONS global TORTURE_OPTIONS
# Check for alternate driver. # Check for alternate driver.
set additional_flags "";
if [file exists [file rootname $src].x] { if [file exists [file rootname $src].x] {
verbose "Using alternate driver [file rootname [file tail $src]].x" 2 verbose "Using alternate driver [file rootname [file tail $src]].x" 2
set done_p 0 set done_p 0
...@@ -184,6 +185,9 @@ proc fortran-torture-execute { src } { ...@@ -184,6 +185,9 @@ proc fortran-torture-execute { src } {
set options "" set options ""
lappend options "additional_flags=-w $option" lappend options "additional_flags=-w $option"
if { $additional_flags != "" } {
lappend options "additional_flags=$additional_flags";
}
set comp_output [gfortran_target_compile "$src" "$executable" executable $options]; set comp_output [gfortran_target_compile "$src" "$executable" executable $options];
# See if we got something bad. # See if we got something bad.
...@@ -341,3 +345,21 @@ proc fortran-torture { args } { ...@@ -341,3 +345,21 @@ proc fortran-torture { args } {
} }
} }
#
# ieee-options -- return options necessary for 100% ieee conformance.
#
proc ieee-options { } {
# Ensure that excess precision does not cause problems.
if [istarget "i?86-*-*"] then {
return "-ffloat-store"
}
if [istarget "m68k-*-*"] then {
return "-ffloat-store"
}
# Enable full IEEE compliance mode.
if { [istarget "alpha*-*-*"]
|| [istarget "sh*-*-*"] } then {
return "-mieee"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment