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