https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81360
--- Comment #17 from Martin Liška <marxin at gcc dot gnu.org> --- Author: marxin Date: Tue Mar 6 20:04:20 2018 New Revision: 258289 URL: https://gcc.gnu.org/viewcvs?rev=258289&root=gcc&view=rev Log: Backport r257490 2018-03-06 Martin Liska <mli...@suse.cz> Backport from mainline 2018-02-08 Jan Hubicka <hubi...@ucw.cz> PR ipa/81360 * cgraph.h (symtab_node::output_to_lto_symbol_table_p): Declare * symtab.c: Include builtins.h (symtab_node::output_to_lto_symbol_table_p): Move here from lto-streamer-out.c:output_symbol_p. * lto-streamer-out.c (write_symbol): Turn early exit to assert. (output_symbol_p): Move all logic to symtab.c (produce_symtab): Update. 2018-03-06 Martin Liska <mli...@suse.cz> Backport from mainline 2018-02-08 Jan Hubicka <hubi...@ucw.cz> PR ipa/81360 * lto.c (unify_scc): Register prevailing trees, not trees to be freed. (read_cgraph_and_symbols): Use symtab_node::output_to_lto_symbol_table_p. Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/cgraph.h branches/gcc-7-branch/gcc/lto-streamer-out.c branches/gcc-7-branch/gcc/lto/ChangeLog branches/gcc-7-branch/gcc/lto/lto.c branches/gcc-7-branch/gcc/symtab.c branches/gcc-7-branch/gcc/tree.c