[Bug lto/64837] lto plugin doesn't call ld_plugin_release_input_file

hjl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 6 13:56:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64837

--- Comment #8 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Fri Feb  6 13:55:42 2015
New Revision: 220477

URL: https://gcc.gnu.org/viewcvs?rev=220477&root=gcc&view=rev
Log:
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.

Modified:
    trunk/lto-plugin/ChangeLog
    trunk/lto-plugin/lto-plugin.c



More information about the Gcc-bugs mailing list