+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.
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 -
+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
# (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.