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.
This commit is contained in:
H.J. Lu 2016-05-17 09:55:05 -07:00
parent 23b5dc392b
commit 68bce0209f
2 changed files with 6 additions and 0 deletions

View 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

View 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]