This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed, PATCH] Check global CC in at_least_gcc_version
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Tue, 17 May 2016 09:56:34 -0700
- Subject: [committed, PATCH] Check global CC in at_least_gcc_version
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
at_least_gcc_version should check global CC.
* testsuite/lib/ld-lib.exp (at_least_gcc_version): Check
global CC.
---
ld/ChangeLog | 5 +++++
ld/testsuite/lib/ld-lib.exp | 1 +
2 files changed, 6 insertions(+)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 84e92e8..e50b318 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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
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]
--
2.5.5