Commit 4b12152c by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

lto.exp: For non-lto, bail out before calling init functions.

	* gcc.dg/lto/lto.exp: For non-lto, bail out before calling
	init functions.

From-SVN: r154189
parent a212a5d4
2009-11-15 Hans-Peter Nilsson <hp@axis.com>
* gcc.dg/lto/lto.exp: For non-lto, bail out before calling
init functions.
2009-11-13 Jason Merrill <jason@redhat.com> 2009-11-13 Jason Merrill <jason@redhat.com>
PR c++/27425 PR c++/27425
......
...@@ -34,6 +34,11 @@ load_lib gcc.exp ...@@ -34,6 +34,11 @@ load_lib gcc.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
}
gcc_init gcc_init
lto_init no-mathlib lto_init no-mathlib
...@@ -41,11 +46,6 @@ lto_init no-mathlib ...@@ -41,11 +46,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 "c_lto" set sid "c_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.c]] { foreach src [lsort [find $srcdir/$subdir *_0.c]] {
# 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