aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/lib
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-07-07 23:42:45 +0930
committerAlan Modra <amodra@gmail.com>2014-07-07 23:46:37 +0930
commit3bb9e7b43fb3bef0ecfef14b9185661afbe5f4c5 (patch)
tree2430d7ac2841f136bd6f6a69d01ecbd0f18944fe /ld/testsuite/lib
parent19aef622f37ae4f940d6e3ef6835fd5519289178 (diff)
downloadgdb-3bb9e7b43fb3bef0ecfef14b9185661afbe5f4c5.zip
gdb-3bb9e7b43fb3bef0ecfef14b9185661afbe5f4c5.tar.gz
gdb-3bb9e7b43fb3bef0ecfef14b9185661afbe5f4c5.tar.bz2
Reinstate compiler check
* lib/ld-lib.exp (check_lto_shared_available): Reinstate compiler check here too.
Diffstat (limited to 'ld/testsuite/lib')
-rw-r--r--ld/testsuite/lib/ld-lib.exp4
1 files changed, 4 insertions, 0 deletions
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] {