OSDN Git Service

PR lto/46291
authordavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Nov 2010 23:13:51 +0000 (23:13 +0000)
committerdavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Nov 2010 23:13:51 +0000 (23:13 +0000)
* 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

lto-plugin/ChangeLog
lto-plugin/lto-plugin.c

index 690970f..690ea5a 100644 (file)
@@ -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.
index 7df0d6f..83b61d5 100644 (file)
@@ -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;
 }