diff --git a/gcc/collect2.c b/gcc/collect2.c index 5434691aff9..7decccd6170 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -1201,6 +1201,7 @@ main (argc, argv) return 0; } + maybe_unlink(output_file); outf = fopen (c_file, "w"); if (outf == (FILE *)0) fatal_perror ("%s", c_file);