diff options
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/lto-wrapper.c | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9489194f9f7..027c81094cd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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> PR bootstrp/44287 diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c index 536ca092f71..7454b54af79 100644 --- a/gcc/lto-wrapper.c +++ b/gcc/lto-wrapper.c @@ -39,6 +39,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" +#include <errno.h> #include "coretypes.h" #include "tm.h" #include "intl.h" @@ -222,7 +223,8 @@ maybe_unlink_file (const char *file) { if (! debug) { - if (unlink_if_ordinary (file)) + if (unlink_if_ordinary (file) + && errno != ENOENT) fatal_perror ("deleting LTRANS file %s", file); } else @@ -262,6 +264,7 @@ fork_execute (char **argv) collect_wait (new_argv[0], pex); maybe_unlink_file (args_name); + args_name = NULL; free (at_args); } |