ipa-inline.c (ipa_inline): Check that function is defined before flattening.
authorJan Hubicka <hubicka@ucw.cz>
Wed, 13 Nov 2019 13:29:27 +0000 (14:29 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 13 Nov 2019 13:29:27 +0000 (13:29 +0000)
commit2895b172d56c355373b64517a3298a01a2f10ec0
treee197a46b63ed6c23cdfd2cf7bdb2f63b795464ad
parent237957cc2c1818f30207f02747a880bd1cd28d0b
ipa-inline.c (ipa_inline): Check that function is defined before flattening.

* ipa-inline.c (ipa_inline): Check that function is defined before
flattening.
* gcc.c-torture/compile/flatten.c: New testcase.

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