summaryrefslogtreecommitdiff
path: root/lto-plugin
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2015-02-06 13:55:42 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2015-02-06 13:55:42 +0000
commit73508877f03771509edbb962b08eaa9e4b227e6f (patch)
tree93aa8793d2c6b5abbf46ddfbca7ef0f2cf37bfd0 /lto-plugin
parentbb779bf045d89f7b5244d53a91488ed42aef6758 (diff)
Revert the PR lto/64837 fix
It breaks gold: % echo "int main () {}" | gcc -fuse-ld=gold -flto -x c++ - ld.gold: internal error in remove_writer, at token.h:132 collect2: error: ld returned 1 exit status * lto-plugin.c (release_input_file): Removed. (claim_file_handler): Don't call release_input_file. (onload): Don't set release_input_file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220477 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'lto-plugin')
-rw-r--r--lto-plugin/ChangeLog6
-rw-r--r--lto-plugin/lto-plugin.c7
2 files changed, 6 insertions, 7 deletions
diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog
index 82d62ae25642..2d6152fec247 100644
--- a/lto-plugin/ChangeLog
+++ b/lto-plugin/ChangeLog
@@ -1,3 +1,9 @@
+2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * lto-plugin.c (release_input_file): Removed.
+ (claim_file_handler): Don't call release_input_file.
+ (onload): Don't set release_input_file.
+
2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
* lto-plugin.c (claim_file_handler): Pass handle to
diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c
index 44d0e3043b5a..8d957402ba66 100644
--- a/lto-plugin/lto-plugin.c
+++ b/lto-plugin/lto-plugin.c
@@ -145,7 +145,6 @@ static ld_plugin_register_all_symbols_read register_all_symbols_read;
static ld_plugin_get_symbols get_symbols, get_symbols_v2;
static ld_plugin_register_cleanup register_cleanup;
static ld_plugin_add_input_file add_input_file;
-static ld_plugin_release_input_file release_input_file;
static ld_plugin_add_input_library add_input_library;
static ld_plugin_message message;
static ld_plugin_add_symbols add_symbols;
@@ -998,9 +997,6 @@ claim_file_handler (const struct ld_plugin_input_file *file, int *claimed)
*claimed = 1;
- if (release_input_file)
- release_input_file (file->handle);
-
goto cleanup;
err:
@@ -1095,9 +1091,6 @@ onload (struct ld_plugin_tv *tv)
case LDPT_ADD_INPUT_FILE:
add_input_file = p->tv_u.tv_add_input_file;
break;
- case LDPT_RELEASE_INPUT_FILE:
- release_input_file = p->tv_u.tv_release_input_file;
- break;
case LDPT_ADD_INPUT_LIBRARY:
add_input_library = p->tv_u.tv_add_input_library;
break;