re PR lto/69866 (lto1: internal compiler error: in add_symbol_to_partition_1, at...
authorJan Hubicka <hubicka@gcc.gnu.org>
Thu, 15 Jun 2017 18:42:10 +0000 (18:42 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 15 Jun 2017 18:42:10 +0000 (18:42 +0000)
commitd1eed638ed170a22a3feb9515b82b125fd203727
treea753e9e9d5423fbd3ccff9f0c5190c796dd8e3c2
parent55dabf65f039c3a5635f01dccb9e4de767f89323
re PR lto/69866 (lto1: internal compiler error: in add_symbol_to_partition_1, at lto/lto-partition.c:158)

PR lto/69866
* lto-symtab.c (lto_symtab_merge_symbols): Drop useless definitions
that resolved externally.

* gcc.dg/lto/pr69866_0.c: New test.
* gcc.dg/lto/pr69866_1.c: Likewise.

From-SVN: r249224
gcc/lto/ChangeLog
gcc/lto/lto-partition.c
gcc/lto/lto-symtab.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr69866_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr69866_1.c [new file with mode: 0644]