summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-gc
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2008-01-22 19:36:58 +0000
committerH.J. Lu <hjl@lucon.org>2008-01-22 19:36:58 +0000
commitaf7c319618c1a3421704a1b10bd90ae682fbdacf (patch)
tree9208ce9eb72590cdb82523fb2fc91348d7c004f8 /ld/testsuite/ld-gc
parentb4aa12290b2bc6d96e971e225464730152c85cb0 (diff)
downloadbinutils-redhat-af7c319618c1a3421704a1b10bd90ae682fbdacf.tar.gz
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 acadcba38b..a15654f5bf 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
}