https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81004
--- Comment #28 from Martin Liška <marxin at gcc dot gnu.org> --- Author: marxin Date: Wed Mar 7 09:44:03 2018 New Revision: 258321 URL: https://gcc.gnu.org/viewcvs?rev=258321&root=gcc&view=rev Log: Backport r257412 2018-03-07 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-6-branch/gcc/lto/ChangeLog branches/gcc-6-branch/gcc/lto/lto.c