https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69866
--- Comment #14 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> --- Author: thopre01 Date: Tue Nov 28 15:19:14 2017 New Revision: 255203 URL: https://gcc.gnu.org/viewcvs?rev=255203&root=gcc&view=rev Log: Fix ICE in add_symbol_to_partition_1 2017-11-28 Thomas Preud'homme <thomas.preudho...@arm.com> Backport from mainline 2017-06-15 Jan Hubicka <hubi...@ucw.cz> Thomas Preud'homme <thomas.preudho...@arm.com> gcc/lto/ PR lto/69866 * lto-symtab.c (lto_symtab_merge_symbols): Drop useless definitions that resolved externally. Backport from mainline 2017-06-15 Thomas Preud'homme <thomas.preudho...@arm.com> gcc/testsuite/ PR lto/69866 * gcc.dg/lto/pr69866_0.c: New test. * gcc.dg/lto/pr69866_1.c: Likewise. Added: branches/ARM/embedded-7-branch/gcc/lto/ChangeLog.arm branches/ARM/embedded-7-branch/gcc/testsuite/gcc.dg/lto/pr69866_0.c branches/ARM/embedded-7-branch/gcc/testsuite/gcc.dg/lto/pr69866_1.c Modified: branches/ARM/embedded-7-branch/gcc/lto/lto-partition.c branches/ARM/embedded-7-branch/gcc/lto/lto-symtab.c branches/ARM/embedded-7-branch/gcc/testsuite/ChangeLog.arm