From: rguenth Date: Thu, 27 May 2010 10:33:08 +0000 (+0000) Subject: 2010-05-27 Richard Guenther X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=411503bd1aec3151dafbb40f7f89ce7e9dde149f;p=thirdparty%2Fgcc.git 2010-05-27 Richard Guenther * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure for non-existant files. (fork_execute): Mark args_name file as deleted. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159913 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9489194f9f75..027c81094cd0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-05-27 Richard Guenther + + * 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 PR bootstrp/44287 diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c index 536ca092f718..7454b54af79b 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 #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); }