From: H.J. Lu Date: Tue, 22 Jan 2008 19:36:58 +0000 (+0000) Subject: 2008-01-22 H.J. Lu X-Git-Tag: sid-snapshot-20080201~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d053948ad25af1794149e779f05431b8705197ce;p=thirdparty%2Fbinutils-gdb.git 2008-01-22 H.J. Lu * ld-gc/gc.exp: Use [which $CC] != 0. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 8fd1852083b..ec2971ae731 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-01-22 H.J. Lu + + * ld-gc/gc.exp: Use [which $CC] != 0. + 2008-01-14 Tristan Gingold * ld-gc/gc.exp (test_gc): Let missing C compiler make tests diff --git a/ld/testsuite/ld-gc/gc.exp b/ld/testsuite/ld-gc/gc.exp index acadcba38b7..a15654f5bf3 100644 --- a/ld/testsuite/ld-gc/gc.exp +++ b/ld/testsuite/ld-gc/gc.exp @@ -27,7 +27,7 @@ if ![check_gc_sections_available] { set cflags "-ffunction-sections -fdata-sections" set objfile "tmpdir/gc.o" -if { [is_remote host] || [which $CC] } { +if { [is_remote host] || [which $CC] != 0 } { ld_compile "$CC -c $CFLAGS $cflags" $srcdir/$subdir/gc.c $objfile }