Commit: Fix check_lto_available proc

Alan Modra amodra@gmail.com
Mon Jul 7 14:01:00 GMT 2014


On Mon, Jul 07, 2014 at 02:40:57PM +0100, Nick Clifton wrote:
> diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
> index a657a97..9f7a414 100644
> --- a/ld/testsuite/lib/ld-lib.exp
> +++ b/ld/testsuite/lib/ld-lib.exp
> @@ -1666,6 +1666,10 @@ proc check_lto_available { } {
>      global CC
>  
>      if {![info exists lto_available_saved]} {
> +        if { [which $CC] == 0 } {
> +	    set lto_available_saved 0
> +	    return 0
> +	}
>  	# Check if gcc supports -flto -fuse-linker-plugin
>  	set flags ""
>  	if [board_info [target_info name] exists cflags] {

I removed that test a few hours ago, thinking that the test in
run_host_cmd would be sufficient.  :-(  What did I miss?

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list