Check global CC in at_least_gcc_version
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 17 May 2016 16:55:05 +0000 (09:55 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 17 May 2016 16:55:05 +0000 (09:55 -0700)
at_least_gcc_version should check global CC.

* testsuite/lib/ld-lib.exp (at_least_gcc_version): Check
global CC.

ld/ChangeLog
ld/testsuite/lib/ld-lib.exp

index 84e92e84352a44172c89f4b3d2b71304dbdb9ce5..e50b318c27b5c041b91902ffdc9e9d58cceed120 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/lib/ld-lib.exp (at_least_gcc_version): Check
+       global CC.
+
 2016-05-17  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
 
        * scripttempl/avr.sc (text): Place .progmem.data from avr-libc
index 9333f52ebd4f2e2da68122d9afce3762b828a86a..d2ece76ee9c546213b23f36c9ce1acc4b26b8bb3 100644 (file)
@@ -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]