ipa-icf.c (sem_item_optimizer::merge): Don't pick 'main' as the source function.
authorNathan Sidwell <nathan@acm.org>
Thu, 17 Dec 2015 21:29:30 +0000 (21:29 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 17 Dec 2015 21:29:30 +0000 (21:29 +0000)
commitaa3987819a5ab392bcb125efe84008e75f99bbfc
tree0d91f65213de20171768f41f75671dd6d5107467
parent94c40e19af4ca5fe57c990df7f7abec48f5aa3af
ipa-icf.c (sem_item_optimizer::merge): Don't pick 'main' as the source function.

gcc/
* ipa-icf.c (sem_item_optimizer::merge): Don't pick 'main' as the
source function.

gcc/testsuite/
* gcc.dg/ipa/ipa-icf-merge-1.c: New.

From-SVN: r231787
gcc/ChangeLog
gcc/ipa-icf.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/ipa-icf-merge-1.c [new file with mode: 0644]