(main): Discard the first executable once we've
authorJason Merrill <merrill@gnu.org>
Thu, 22 Sep 1994 17:14:46 +0000 (17:14 +0000)
committerJason Merrill <merrill@gnu.org>
Thu, 22 Sep 1994 17:14:46 +0000 (17:14 +0000)
        exploited it.

From-SVN: r8122

gcc/collect2.c

index 5434691aff944575ba5066279b711a4d46abcf0d..7decccd6170ce638ab1b04d71a862dd512d53783 100644 (file)
@@ -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);