From 37da368856ad8e3f76f50f429211d6cd0748a5f5 Mon Sep 17 00:00:00 2001
From: Dave Korn <dave.korn.cygwin@gmail.com>
Date: Wed, 3 Nov 2010 23:13:51 +0000
Subject: [PATCH] re PR lto/46291 (Failed to bootstrap-lto)

	PR lto/46291
	* lto-plugin.c (claim_file_handler): Don't close file descriptor.

From-SVN: r166285
---
 lto-plugin/ChangeLog    | 5 +++++
 lto-plugin/lto-plugin.c | 2 --
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog
index 690970f85242..690ea5ac40fe 100644
--- a/lto-plugin/ChangeLog
+++ b/lto-plugin/ChangeLog
@@ -1,3 +1,8 @@
+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
diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c
index 7df0d6f3c011..83b61d53188f 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;
 }
-- 
GitLab