aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-gc
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2008-01-22 19:36:58 +0000
committerH.J. Lu <hjl.tools@gmail.com>2008-01-22 19:36:58 +0000
commitd053948ad25af1794149e779f05431b8705197ce (patch)
treeaf7e0ada74479be204a679d12b4ca2e0068a44ac /ld/testsuite/ld-gc
parent6305a2038294bda4534a06221762cb07f4cb0c51 (diff)
downloadgdb-d053948ad25af1794149e779f05431b8705197ce.zip
gdb-d053948ad25af1794149e779f05431b8705197ce.tar.gz
gdb-d053948ad25af1794149e779f05431b8705197ce.tar.bz2
2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
* ld-gc/gc.exp: Use [which $CC] != 0.
Diffstat (limited to 'ld/testsuite/ld-gc')
-rw-r--r--ld/testsuite/ld-gc/gc.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-gc/gc.exp b/ld/testsuite/ld-gc/gc.exp
index acadcba..a15654f 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
}