aboutsummaryrefslogtreecommitdiff
path: root/lto-plugin
diff options
context:
space:
mode:
authorDave Korn <dave.korn.cygwin@gmail.com>2010-11-03 23:13:51 +0000
committerDave Korn <dave.korn.cygwin@gmail.com>2010-11-03 23:13:51 +0000
commit4964d42e7c01e3f0147e64f0259777eba8b75205 (patch)
treeddf949230b8cf5916de3a33e186b3cdc28e6c1f1 /lto-plugin
parent425857ce02eff6cec70926261339e8b2eae4ca13 (diff)
PR lto/46291
* lto-plugin.c (claim_file_handler): Don't close file descriptor. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@166285 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'lto-plugin')
-rw-r--r--lto-plugin/ChangeLog5
-rw-r--r--lto-plugin/lto-plugin.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog
index 690970f8524..690ea5ac40f 100644
--- a/lto-plugin/ChangeLog
+++ b/lto-plugin/ChangeLog
@@ -1,5 +1,10 @@
2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
+ PR lto/46291
+ * lto-plugin.c (claim_file_handler): Don't close file descriptor.
+
+2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
+
PR lto/46273
* lto-plugin.h: Delete.
* lto-plugin-elf.c: Likewise.
diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c
index 7df0d6f3c01..83b61d53188 100644
--- a/lto-plugin/lto-plugin.c
+++ b/lto-plugin/lto-plugin.c
@@ -886,8 +886,6 @@ claim_file_handler (const struct ld_plugin_input_file *file, int *claimed)
cleanup:
if (obj.objfile)
simple_object_release_read (obj.objfile);
- if (file->fd >= 0)
- close (file->fd);
return LDPS_OK;
}