aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/collect2.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b2b7575..f0ee077 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2005-06-03 Joseph S. Myers <joseph@codesourcery.com>
+
+ * collect2.c (maybe_unlink): Use unlink_if_ordinary.
+
2005-06-02 Bernd Schmidt <bernd.schmidt@analog.com>
* reload1.c (reload): Revert my previous patch.
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 7c8fde6..cc1ac32 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1606,7 +1606,7 @@ static void
maybe_unlink (const char *file)
{
if (!debug)
- unlink (file);
+ unlink_if_ordinary (file);
else
notice ("[Leaving %s]\n", file);
}