aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/lib
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-05-17 09:55:05 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-05-17 09:55:05 -0700
commit68bce0209f2be6d0f852ef7092b9d412d78fd43a (patch)
tree58586bd184ca37efb3c6958ba8f1047891eb105a /ld/testsuite/lib
parent23b5dc392be051ab5a86d7f1734c29d5222b9e1f (diff)
downloadfsf-binutils-gdb-68bce0209f2be6d0f852ef7092b9d412d78fd43a.zip
fsf-binutils-gdb-68bce0209f2be6d0f852ef7092b9d412d78fd43a.tar.gz
fsf-binutils-gdb-68bce0209f2be6d0f852ef7092b9d412d78fd43a.tar.bz2
Check global CC in at_least_gcc_version
at_least_gcc_version should check global CC. * testsuite/lib/ld-lib.exp (at_least_gcc_version): Check global CC.
Diffstat (limited to 'ld/testsuite/lib')
-rw-r--r--ld/testsuite/lib/ld-lib.exp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 9333f52..d2ece76 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -29,6 +29,7 @@ load_common_lib binutils-common.exp
# Returns 0 otherwise.
#
proc at_least_gcc_version { major minor } {
+ global CC
if {![info exists CC]} {
set CC [find_gcc]