This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Commit: Fix check_lto_available proc
- From: Alan Modra <amodra at gmail dot com>
- To: Nick Clifton <nickc at redhat dot com>, binutils at sourceware dot org
- Date: Mon, 7 Jul 2014 23:53:38 +0930
- Subject: Re: Commit: Fix check_lto_available proc
- Authentication-results: sourceware.org; auth=none
- References: <87y4w5p9qu dot fsf at redhat dot com> <20140707140127 dot GH8039 at bubble dot grove dot modra dot org> <20140707140901 dot GI8039 at bubble dot grove dot modra dot org>
I've restored the same check in check_lto_shared_available.
* lib/ld-lib.exp (check_lto_shared_available): Reinstate compiler
check here too.
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 9f7a414..9dac6be 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -1700,6 +1700,10 @@ proc check_lto_shared_available { } {
global CC
if {![info exists lto_shared_available_saved]} {
+ if { [which $CC] == 0 } {
+ set lto_shared_available_saved 0
+ return 0
+ }
# Check if gcc supports -flto -fuse-linker-plugin -shared
set flags ""
if [board_info [target_info name] exists cflags] {
--
Alan Modra
Australia Development Lab, IBM