diff options
author | Rafael Avila de Espindola <espindola@google.com> | 2009-10-30 18:29:37 +0000 |
---|---|---|
committer | Rafael Espindola <espindola@gcc.gnu.org> | 2009-10-30 18:29:37 +0000 |
commit | 86ed04df82ed7360221e421d691aced1efbedb90 (patch) | |
tree | 68d0b283fd822d6c677e932f928eaec36a8b35f9 /lto-plugin/lto-plugin.c | |
parent | f6d08b433b7347c53d1d42b36f3806258705e37e (diff) | |
download | gcc-86ed04df82ed7360221e421d691aced1efbedb90.zip gcc-86ed04df82ed7360221e421d691aced1efbedb90.tar.gz gcc-86ed04df82ed7360221e421d691aced1efbedb90.tar.bz2 |
re PR lto/41871 (lto-plugin gives: could not open/create temporary file)
2009-10-30 Rafael Avila de Espindola <espindola@google.com>
PR41871
* lto-plugin.c (claim_file_handler): Close files that we created.
From-SVN: r153764
Diffstat (limited to 'lto-plugin/lto-plugin.c')
-rw-r--r-- | lto-plugin/lto-plugin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index 3a51441..c92ac06 100644 --- a/lto-plugin/lto-plugin.c +++ b/lto-plugin/lto-plugin.c @@ -635,6 +635,9 @@ claim_file_handler (const struct ld_plugin_input_file *file, int *claimed) if (elf) elf_end (elf); + if (file->offset != 0) + close (lto_file_fd); + return LDPS_OK; } |