re PR lto/54709 (r191713 breaks Firefox build)
authorRichard Guenther <rguenther@suse.de>
Thu, 27 Sep 2012 09:11:18 +0000 (09:11 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 27 Sep 2012 09:11:18 +0000 (09:11 +0000)
commite649d346e789ca15524872c11a40288113c27d50
treeff86bf776914366000628c9bf9dc4c0d6d38f8c8
parenta80f7a710e9bb7f5873b197d127aa30630ce6e4f
re PR lto/54709 (r191713 breaks Firefox build)

2012-09-27  Richard Guenther  <rguenther@suse.de>

PR lto/54709
* lto-symtab.c (resolution_guessed_p): Remove.
(set_resolution_guessed): Likewise.
(lto_symtab_register_decl): Remove assert.
(lto_symtab_resolve_symbols): Do not alter symbol resolutions
and return the prevailing symbol, checking for multiple prevailing
symbols here.
(lto_symtab_merge_decls_1): Use the result from
lto_symtab_resolve_symbols.  Do not alter symbol resolutions.

* gcc.dg/lto/pr54709_0.c: New testcase.
* gcc.dg/lto/pr54709_1.c: Likewise.

From-SVN: r191798
gcc/ChangeLog
gcc/lto-symtab.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr54709_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr54709_1.c [new file with mode: 0644]