* lib/ld.exp (default_ld_compile): Remove the output file before
authorIan Lance Taylor <ian@airs.com>
Mon, 31 Oct 1994 00:05:09 +0000 (00:05 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 31 Oct 1994 00:05:09 +0000 (00:05 +0000)
compiling.

ld/testsuite/lib/ld.exp

index d01f074d0fd2ea1592c0a4d0270ed9f43f96c776..e205cbaa619acb7a4fad5485b40cc9a65c19b4af 100644 (file)
@@ -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"