https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81004
--- Comment #27 from Martin Liška <marxin at gcc dot gnu.org> --- Author: marxin Date: Tue Mar 6 20:02:22 2018 New Revision: 258287 URL: https://gcc.gnu.org/viewcvs?rev=258287&root=gcc&view=rev Log: Backport r257412 2018-03-06 Martin Liska <mli...@suse.cz> Backport from mainline 2018-01-30 Jan Hubicka <hubi...@ucw.cz> PR lto/81004 * lto.c: Include builtins.h (register_resolution): Merge resolutions in case trees was merged across units. (lto_maybe_register_decl): Break out from ... (lto_read_decls): ... here. (unify_scc): Also register decls here. (read_cgraph_and_symbols): Sanity check that all resolutions was read. Modified: branches/gcc-7-branch/gcc/lto/ChangeLog branches/gcc-7-branch/gcc/lto/lto.c