From: hp Date: Sun, 15 Nov 2009 14:49:07 +0000 (+0000) Subject: * gcc.dg/lto/lto.exp: For non-lto, bail out before calling X-Git-Url: http://git.sourceforge.jp/view?a=commitdiff_plain;h=de301bff5f3536ab51a10f9387e7a0e99db52255;p=pf3gnuchains%2Fgcc-fork.git * gcc.dg/lto/lto.exp: For non-lto, bail out before calling init functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154189 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e26d7052aae..dacc1c1ade2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-11-15 Hans-Peter Nilsson + + * gcc.dg/lto/lto.exp: For non-lto, bail out before calling + init functions. + 2009-11-13 Jason Merrill PR c++/27425 diff --git a/gcc/testsuite/gcc.dg/lto/lto.exp b/gcc/testsuite/gcc.dg/lto/lto.exp index 6cd798f46fb..48b597c7022 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.