summaryrefslogtreecommitdiff
path: root/lto-plugin
diff options
context:
space:
mode:
authordavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-03 23:13:51 +0000
committerdavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-03 23:13:51 +0000
commita0f802f19842e68b27d568b9aa6bdbf530df4b2f (patch)
treeddf949230b8cf5916de3a33e186b3cdc28e6c1f1 /lto-plugin
parentaadbd4ae01b010e0c3fe402aa5028efe5286a2b2 (diff)
downloadgcc-a0f802f19842e68b27d568b9aa6bdbf530df4b2f.tar.gz
PR lto/46291
* lto-plugin.c (claim_file_handler): Don't close file descriptor. git-svn-id: svn+ssh://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;
}