OSDN Git Service

Delete temporary output files.
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Mar 2010 14:06:40 +0000 (14:06 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:12:49 +0000 (14:12 +0900)
2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>

PR lto/43336
* lto-plugin.c (cleanup_handler): Delete temporary output files.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157483 138bc75d-0d04-0410-961f-82ee72b054a4

lto-plugin/ChangeLog
lto-plugin/lto-plugin.c

index df77128..ccb6165 100644 (file)
@@ -1,32 +1,3 @@
-2010-05-07  Richard Guenther <rguenther@suse.de>
-
-       * lto-plugin.c (free_2): Do not free resolution_file.
-       (write_resolution): Check that we were passed a resolution file.
-       (all_symbols_read_handler): Adjust.
-       (cleanup_handler): Do not remove the resolution file.
-       (process_option): Handle -fresolution=.
-
-2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-       PR other/43620
-       * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
-       * Makefile.in: Regenerate.
-
-2010-04-23  Richard Guenther  <rguenther@suse.de>
-
-       PR lto/41550
-       * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
-       (translate): Likewise.
-       (all_symbols_read_handler): Likewise.
-       (claim_file_handler): Likewise.
-       (process_option): Likewise.
-       (add_output_files): Likewise.  Remove filename length limit.
-
-2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-       * Makefile.in: Regenerate.
-       * aclocal.m4: Regenerate.
-
 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
 
        PR lto/43336
 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
 
        PR lto/43336
index cb785c4..c329606 100644 (file)
@@ -539,6 +539,12 @@ cleanup_handler (void)
       check (t == 0, LDPL_FATAL, "could not unlink output file");
     }
 
       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;
 }
   free_2 ();
   return LDPS_OK;
 }