From 3b6e42f965f08e4e68d66b345a9ae2349ae6be5f Mon Sep 17 00:00:00 2001 From: Ilya Verbin Date: Wed, 14 Jan 2015 15:51:37 +0000 Subject: [PATCH] Makefile.in (site.exp): Do not set ENABLE_LTO. gcc/ * Makefile.in (site.exp): Do not set ENABLE_LTO. gcc/testsuite/ * lib/target-supports.exp (check_effective_target_lto): Check for -flto option support instead of ENABLE_LTO from Makefile. From-SVN: r219606 --- gcc/ChangeLog | 4 ++++ gcc/Makefile.in | 3 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/lib/target-supports.exp | 5 +++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2fe870b2256..2539e5dfe3e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-01-14 Ilya Verbin + + * Makefile.in (site.exp): Do not set ENABLE_LTO. + 2015-01-14 Ilya Verbin * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries. diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 5f9261fbb5e..44a42143aa0 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -3606,9 +3606,6 @@ site.exp: ./config.status Makefile echo "set PLUGINCFLAGS \"$(PLUGINCFLAGS)\"" >> ./site.tmp; \ echo "set GMPINC \"$(GMPINC)\"" >> ./site.tmp; \ fi - @if test "@enable_lto@" = "yes" ; then \ - echo "set ENABLE_LTO 1" >> ./site.tmp; \ - fi # If newlib has been configured, we need to pass -B to gcc so it can find # newlib's crt0.o if it exists. This will cause a "path prefix not used" # message if it doesn't, but the testsuite is supposed to ignore the message - diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 10c28256239..9b24631a209 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-01-14 Ilya Verbin + + * lib/target-supports.exp (check_effective_target_lto): Check for -flto + option support instead of ENABLE_LTO from Makefile. + 2015-01-14 Richard Biener PR tree-optimization/59354 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 2395ac4250f..00872ab6520 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -5760,11 +5760,12 @@ proc check_effective_target_gld { } { # (LTO) support. proc check_effective_target_lto { } { - global ENABLE_LTO if { [istarget nvptx-*-*] } { return 0; } - return [info exists ENABLE_LTO] + return [check_no_compiler_messages lto object { + void foo (void) { } + } "-flto"] } # Return 1 if -mx32 -maddress-mode=short can compile, 0 otherwise. -- 2.30.2