re PR ipa/83051 (ICE on valid code at -O3: in edge_badness, at ipa-inline.c:1024)
authorJan Hubicka <hubicka@ucw.cz>
Wed, 17 Jan 2018 20:40:46 +0000 (21:40 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 17 Jan 2018 20:40:46 +0000 (20:40 +0000)
commita99670f923dec07fe1b2813419f33e0cd18e091e
tree7639a782b167f2ec0ee7b30446cf912d8a1e8821
parent8fca809b59757519517e67a23b6df005e9e452dd
re PR ipa/83051 (ICE on valid code at -O3: in edge_badness, at ipa-inline.c:1024)

PR ipa/83051
* ipa-inline.c (flatten_function): Do not overwrite final inlining
failure.
* gcc.c-torture/compile/pr83051-2.c: New testcase.

From-SVN: r256818
gcc/ChangeLog
gcc/ipa-inline.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr83051-2.c [new file with mode: 0644]