]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Makefile.in (site.exp): Do not set ENABLE_LTO.
authorIlya Verbin <ilya.verbin@intel.com>
Wed, 14 Jan 2015 15:51:37 +0000 (15:51 +0000)
committerIlya Verbin <iverbin@gcc.gnu.org>
Wed, 14 Jan 2015 15:51:37 +0000 (15:51 +0000)
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
gcc/Makefile.in
gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index 2fe870b225681efff7c3d152557b497ec1a610f9..2539e5dfe3ea59ae838bab96b5296b93d5a01c27 100644 (file)
@@ -1,3 +1,7 @@
+2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
+
+       * Makefile.in (site.exp): Do not set ENABLE_LTO.
+
 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
 
        * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
index 5f9261fbb5e7a1fa831a10ff1434ec6b4801492a..44a42143aa056b3c2fc025ac50be6bedf25fb6d6 100644 (file)
@@ -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 -
index 10c28256239acf7769f14c85cee6c42a9a0ab5cd..9b24631a20948139de53e792a25f8d9c44b3afd5 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
+
+       * lib/target-supports.exp (check_effective_target_lto): Check for -flto
+       option support instead of ENABLE_LTO from Makefile.
+
 2015-01-14  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/59354
index 2395ac4250f0b0ef8084ac1c4b2dcc2daf16e6f3..00872ab652093e5a4e20564322ebe88f2618963c 100644 (file)
@@ -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.