aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-10-31 00:05:09 +0000
committerIan Lance Taylor <ian@airs.com>1994-10-31 00:05:09 +0000
commit0d29b6cc9dcbdeeeebd6facf175020ff238e72d1 (patch)
treebc2a179327c18fe1a86a4bb1e3fd1fcb70d77c63 /ld
parent197e30e5605a184b3728dbd79c7890a3c09cf27e (diff)
downloadgdb-0d29b6cc9dcbdeeeebd6facf175020ff238e72d1.zip
gdb-0d29b6cc9dcbdeeeebd6facf175020ff238e72d1.tar.gz
gdb-0d29b6cc9dcbdeeeebd6facf175020ff238e72d1.tar.bz2
* lib/ld.exp (default_ld_compile): Remove the output file before
compiling.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/lib/ld.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/testsuite/lib/ld.exp b/ld/testsuite/lib/ld.exp
index d01f074..e205cba 100644
--- a/ld/testsuite/lib/ld.exp
+++ b/ld/testsuite/lib/ld.exp
@@ -112,6 +112,8 @@ proc default_ld_compile { cc source object } {
return 0
}
+ catch "exec rm -f $object" exec_output
+
send_log "$cc -I$srcdir$subdir -c $CFLAGS $source -o $object\n"
verbose "$cc -I$srcdir$subdir -c $CFLAGS $source -o $object"