diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2009-11-15 14:49:07 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2009-11-15 14:49:07 +0000 |
commit | 4b12152c8f4f0f9d2f6753d11d38b2a1ac5bf7f0 (patch) | |
tree | a2f7f0962680e559b33709bc700c53a9aefb514f | |
parent | a212a5d408ce85d717a166103601f596b58da9af (diff) | |
download | gcc-4b12152c8f4f0f9d2f6753d11d38b2a1ac5bf7f0.zip gcc-4b12152c8f4f0f9d2f6753d11d38b2a1ac5bf7f0.tar.gz gcc-4b12152c8f4f0f9d2f6753d11d38b2a1ac5bf7f0.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/lto/lto.exp | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e26d705..dacc1c1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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> PR c++/27425 diff --git a/gcc/testsuite/gcc.dg/lto/lto.exp b/gcc/testsuite/gcc.dg/lto/lto.exp index 6cd798f..48b597c 100644 --- a/gcc/testsuite/gcc.dg/lto/lto.exp +++ b/gcc/testsuite/gcc.dg/lto/lto.exp @@ -34,6 +34,11 @@ load_lib gcc.exp # Load the language-independent compabibility support procedures. load_lib lto.exp +# If LTO has not been enabled, bail. +if { ![check_effective_target_lto] } { + return +} + gcc_init lto_init no-mathlib @@ -41,11 +46,6 @@ lto_init no-mathlib # with other lto tests running at the same time. set sid "c_lto" -# If LTO has not been enabled, bail. -if { ![check_effective_target_lto] } { - return -} - # Main loop. foreach src [lsort [find $srcdir/$subdir *_0.c]] { # If we're only testing specific files and this isn't one of them, skip it. |