re PR lto/65130 (ICE with LTO on valid code on x86_64-linux-gnu)
authorJan Hubicka <hubicka@ucw.cz>
Mon, 2 Mar 2015 20:31:21 +0000 (21:31 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 2 Mar 2015 20:31:21 +0000 (20:31 +0000)
commit1af8bfe51613a7ba044d1e7cc8d3e244c6daf8bc
treeee0a53af265611768823eb755d621853a9759d70
parentb91b562cf2764dc10ba00a9473287728a59c4443
re PR lto/65130 (ICE with LTO on valid code on x86_64-linux-gnu)

PR ipa/65130
* ipa-inline.c (check_callers): Looks for recursion.
(inline_to_all_callers): Give up on uninlinable or recursive edges.
* ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
summary of inline clones.
(do_estimate_growth_1): Fix recursion check.

* gcc.dg/lto/pr65130_0.c: New testcase.
* gcc.dg/lto/pr65130_1.c: New testcase.

From-SVN: r221124
gcc/ChangeLog
gcc/ipa-inline-analysis.c
gcc/ipa-inline.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr65130_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr65130_1.c [new file with mode: 0644]