re PR ipa/58332 (error: inlined_to pointer is set but no predecessors found)
authorJan Hubicka <jh@suse.cz>
Tue, 17 Sep 2013 17:45:00 +0000 (19:45 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 17 Sep 2013 17:45:00 +0000 (17:45 +0000)
commitb631d45ac3d9d53a648885ac6b88210da192ab37
treead0eee441d92de888ca7a13df2182efb4f34930e
parent8d34e421a5668e25a992bd0b349cb81e91ee3e49
re PR ipa/58332 (error: inlined_to pointer is set but no predecessors found)

PR middle-end/58332
* gcc.c-torture/compile/pr58332.c: New testcase.
* cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
* ipa-inline.c (can_inline_edge_p): Do not downgrade
FUNCTION_NOT_OPTIMIZED.
* ipa-inline-analysis.c (compute_inline_parameters): Function
not optimized is not inlinable unless it is alwaysinline.
(inline_analyze_function): Force calls in not optimized
function not inlinable.

From-SVN: r202661
gcc/ChangeLog
gcc/cif-code.def
gcc/ipa-inline-analysis.c
gcc/ipa-inline.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr58332.c [new file with mode: 0644]