Commit 62116e60 by Richard Guenther Committed by Richard Biener

lto-wrapper.c (maybe_unlink_file): Ignore unlink failure for non-existant files.

2010-05-27  Richard Guenther  <rguenther@suse.de>

	* lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
	for non-existant files.
	(fork_execute): Mark args_name file as deleted.

From-SVN: r159913
parent 64c31785
2010-05-27 Richard Guenther <rguenther@suse.de>
* lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
for non-existant files.
(fork_execute): Mark args_name file as deleted.
2010-05-27 Kai Tietz <kai.tietz@onevision.com> 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
PR bootstrp/44287 PR bootstrp/44287
......
...@@ -39,6 +39,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -39,6 +39,7 @@ along with GCC; see the file COPYING3. If not see
#include "config.h" #include "config.h"
#include "system.h" #include "system.h"
#include <errno.h>
#include "coretypes.h" #include "coretypes.h"
#include "tm.h" #include "tm.h"
#include "intl.h" #include "intl.h"
...@@ -222,7 +223,8 @@ maybe_unlink_file (const char *file) ...@@ -222,7 +223,8 @@ maybe_unlink_file (const char *file)
{ {
if (! debug) if (! debug)
{ {
if (unlink_if_ordinary (file)) if (unlink_if_ordinary (file)
&& errno != ENOENT)
fatal_perror ("deleting LTRANS file %s", file); fatal_perror ("deleting LTRANS file %s", file);
} }
else else
...@@ -262,6 +264,7 @@ fork_execute (char **argv) ...@@ -262,6 +264,7 @@ fork_execute (char **argv)
collect_wait (new_argv[0], pex); collect_wait (new_argv[0], pex);
maybe_unlink_file (args_name); maybe_unlink_file (args_name);
args_name = NULL;
free (at_args); free (at_args);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment