OSDN Git Service

Delete temporary output files.
[pf3gnuchains/gcc-fork.git] / lto-plugin / lto-plugin.c
index c82f50d..4f0f833 100644 (file)
@@ -538,6 +538,12 @@ cleanup_handler (void)
       check (t == 0, LDPL_FATAL, "could not unlink output file");
     }
 
+  for (i = 0; i < num_output_files; i++)
+    {
+      t = unlink (output_files[i]);
+      check (t == 0, LDPL_FATAL, "could not unlink output file");
+    }
+
   free_2 ();
   return LDPS_OK;
 }