]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
+2013-11-12 Balaji V.
authorBalaji V. Iyer <balaji.v.iyer@intel.com>
Tue, 12 Nov 2013 23:17:26 +0000 (23:17 +0000)
committerBalaji V. Iyer <bviyer@gcc.gnu.org>
Tue, 12 Nov 2013 23:17:26 +0000 (15:17 -0800)
+2013-11-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * gcc.dg/cilk-plus/cilk-plus.exp: Added a check for LTO before running
+       LTO tests.
+

From-SVN: r204725

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cilk-plus/cilk-plus.exp

index e3460efad24ff2387edd5a6940c6d6c0a1cd365c..09c7f2017af77ba6ac87986b84063db67e18fa9e 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * gcc.dg/cilk-plus/cilk-plus.exp: Added a check for LTO before running
+       LTO tests.
+
 2013-11-12  Jeff Law  <law@redhat.com>
 
        * gcc.dg/tree-ssa/isolate-1.c: Update expected output.
index 3a3cba80a702c51bd82556290914716a28b6ebb2..7dc2c6e43a996447f45c18777e70dbfd1ab815dc 100644 (file)
@@ -18,6 +18,7 @@
 
 
 load_lib gcc-dg.exp
+load_lib lto.exp
 
 if { ![check_effective_target_cilkplus] } {
     return;
@@ -48,8 +49,9 @@ dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O
 dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O2 -std=c99 -fcilkplus $ALWAYS_CFLAGS" " "
 dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O2 -ftree-vectorize -fcilkplus $ALWAYS_CFLAGS" " "
 dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O3 -g -fcilkplus $ALWAYS_CFLAGS" " "
-dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O3 -flto -g -fcilkplus $ALWAYS_CFLAGS" " "
-
+if { [check_effective_target_lto] } {
+    dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O3 -flto -g -fcilkplus $ALWAYS_CFLAGS" " "
+}
 
 
 dg-finish