From: H.J. Lu Date: Tue, 17 May 2016 16:55:05 +0000 (-0700) Subject: Check global CC in at_least_gcc_version X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68bce0209f2be6d0f852ef7092b9d412d78fd43a;p=binutils-gdb.git 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. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 84e92e84352..e50b318c27b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2016-05-17 H.J. Lu + + * testsuite/lib/ld-lib.exp (at_least_gcc_version): Check + global CC. + 2016-05-17 Senthil Kumar Selvaraj * 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 9333f52ebd4..d2ece76ee9c 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]