re PR lto/81004 (linking failed with -flto and static libboost_program_options)
authorJan Hubicka <hubicka@ucw.cz>
Tue, 6 Feb 2018 13:27:04 +0000 (14:27 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 6 Feb 2018 13:27:04 +0000 (13:27 +0000)
commit43fbc2e9c46ad20a9566cc85f12ac24021f19ad3
tree23b2060ac12fe84d4040f663cbf34a555f1840e8
parentb25e5572f1262ed0ec4beea19eec15ac28fdf8ed
re PR lto/81004 (linking failed with -flto and static libboost_program_options)

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.

From-SVN: r257412
gcc/lto/ChangeLog
gcc/lto/lto.c