Commit b02281f2 by Richard Biener Committed by Richard Biener

lto.exp: Do check_effective_target_lto check before adjusting mathlib options.

2014-01-13  Richard Biener  <rguenther@suse.de>

	* g++.dg/lto/lto.exp: Do check_effective_target_lto check before
	adjusting mathlib options.
	* gfortran.dg/lto/lto.exp: Likewise.

From-SVN: r206577
parent e75fde1a
2014-01-13 Richard Biener <rguenther@suse.de>
* g++.dg/lto/lto.exp: Do check_effective_target_lto check before
adjusting mathlib options.
* gfortran.dg/lto/lto.exp: Likewise.
2014-01-13 Eric Botcazou <ebotcazou@adacore.com> 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/loop_optimization17.adb: New test. * gnat.dg/loop_optimization17.adb: New test.
......
...@@ -35,6 +35,11 @@ load_lib target-libpath.exp ...@@ -35,6 +35,11 @@ load_lib target-libpath.exp
# Load the language-independent compabibility support procedures. # Load the language-independent compabibility support procedures.
load_lib lto.exp load_lib lto.exp
# If LTO has not been enabled, bail.
if { ![check_effective_target_lto] } {
return
}
g++_init g++_init
lto_init no-mathlib lto_init no-mathlib
...@@ -42,11 +47,6 @@ lto_init no-mathlib ...@@ -42,11 +47,6 @@ lto_init no-mathlib
# with other lto tests running at the same time. # with other lto tests running at the same time.
set sid "cp_lto" set sid "cp_lto"
# If LTO has not been enabled, bail.
if { ![check_effective_target_lto] } {
return
}
# Main loop. # Main loop.
foreach src [lsort [find $srcdir/$subdir *_0.\[cC\]]] { foreach src [lsort [find $srcdir/$subdir *_0.\[cC\]]] {
# If we're only testing specific files and this isn't one of them, skip it. # If we're only testing specific files and this isn't one of them, skip it.
......
...@@ -34,17 +34,17 @@ load_lib gfortran-dg.exp ...@@ -34,17 +34,17 @@ load_lib gfortran-dg.exp
# Load the language-independent compabibility support procedures. # Load the language-independent compabibility support procedures.
load_lib lto.exp load_lib lto.exp
# If LTO has not been enabled, bail.
if { ![check_effective_target_lto] } {
return
}
lto_init no-mathlib lto_init no-mathlib
# Define an identifier for use with this suite to avoid name conflicts # Define an identifier for use with this suite to avoid name conflicts
# with other lto tests running at the same time. # with other lto tests running at the same time.
set sid "f_lto" set sid "f_lto"
# If LTO has not been enabled, bail.
if { ![check_effective_target_lto] } {
return
}
# Main loop. # Main loop.
foreach src [lsort [glob -nocomplain $srcdir/$subdir/*_0.\[fF\]{,90,95,03,08} ]] { foreach src [lsort [glob -nocomplain $srcdir/$subdir/*_0.\[fF\]{,90,95,03,08} ]] {
# If we're only testing specific files and this isn't one of them, skip it. # If we're only testing specific files and this isn't one of them, skip it.
......
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