re PR ipa/81360 (ice in estimate_edge_growth, at ipa-inline.h:86)
authorJan Hubicka <hubicka@ucw.cz>
Thu, 8 Feb 2018 14:51:51 +0000 (15:51 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 8 Feb 2018 14:51:51 +0000 (14:51 +0000)
commit39aa9b2369eff7f2be0712ea7f1ee12f8697ce36
tree09190fc346352b0770f0eab06a1b4031cf5bb35d
parent84b4c7b593cd4ebb475a08aa4b816c722f716ce6
re PR ipa/81360 (ice in estimate_edge_growth, at ipa-inline.h:86)

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.

* 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.

From-SVN: r257490
gcc/ChangeLog
gcc/cgraph.h
gcc/lto-streamer-out.c
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/symtab.c
gcc/tree.c