From f1278bb4b822a61ab3c9e20916bbfd375cc7bc49 Mon Sep 17 00:00:00 2001 From: rguenth Date: Mon, 13 Jan 2014 11:27:43 +0000 Subject: [PATCH] 2014-01-13 Richard Biener * g++.dg/lto/lto.exp: Do check_effective_target_lto check before adjusting mathlib options. * gfortran.dg/lto/lto.exp: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206577 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/lto/lto.exp | 10 +++++----- gcc/testsuite/gfortran.dg/lto/lto.exp | 10 +++++----- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8c0d0622956..126e6f03727 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2014-01-13 Richard Biener + + * 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 * gnat.dg/loop_optimization17.adb: New test. diff --git a/gcc/testsuite/g++.dg/lto/lto.exp b/gcc/testsuite/g++.dg/lto/lto.exp index 9145af78248..4d7d727b987 100644 --- a/gcc/testsuite/g++.dg/lto/lto.exp +++ b/gcc/testsuite/g++.dg/lto/lto.exp @@ -35,6 +35,11 @@ load_lib target-libpath.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 +} + g++_init lto_init no-mathlib @@ -42,11 +47,6 @@ lto_init no-mathlib # with other lto tests running at the same time. set sid "cp_lto" -# If LTO has not been enabled, bail. -if { ![check_effective_target_lto] } { - return -} - # Main loop. foreach src [lsort [find $srcdir/$subdir *_0.\[cC\]]] { # If we're only testing specific files and this isn't one of them, skip it. diff --git a/gcc/testsuite/gfortran.dg/lto/lto.exp b/gcc/testsuite/gfortran.dg/lto/lto.exp index b848f9fdf3b..3e329792eff 100644 --- a/gcc/testsuite/gfortran.dg/lto/lto.exp +++ b/gcc/testsuite/gfortran.dg/lto/lto.exp @@ -34,17 +34,17 @@ load_lib gfortran-dg.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 +} + lto_init no-mathlib # Define an identifier for use with this suite to avoid name conflicts # with other lto tests running at the same time. set sid "f_lto" -# If LTO has not been enabled, bail. -if { ![check_effective_target_lto] } { - return -} - # Main loop. 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. -- 2.11.4.GIT