summaryrefslogtreecommitdiff
path: root/lto-plugin/lto-plugin.c
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/lto-plugin.c
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/lto-plugin.c')
-rw-r--r--lto-plugin/lto-plugin.c2
1 files changed, 0 insertions, 2 deletions
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;
}