Fix inliner ICE on alias with flatten attribute [PR92372]
authorJan Hubicka <jh@suse.cz>
Thu, 19 Mar 2020 16:12:56 +0000 (17:12 +0100)
committerJan Hubicka <jh@suse.cz>
Thu, 19 Mar 2020 16:12:56 +0000 (17:12 +0100)
commitf22712bd8a2ed57d3cc7e6fa92730bd5852e27b3
treeb1cc53660ac9b44ff141b8908117343bba6e1b3f
parentc8429c2aba80f845939ffa6b2cfe8a0be1b50078
Fix inliner ICE on alias with flatten attribute [PR92372]

gcc/ChangeLog:

2020-03-19  Jan Hubicka  <hubicka@ucw.cz>

PR ipa/92372
* cgraphunit.c (process_function_and_variable_attributes): warn
for flatten attribute on alias.
* ipa-inline.c (ipa_inline): Do not ICE on flatten attribute on alias.

gcc/testsuite/ChangeLog:

2020-03-19  Jan Hubicka  <hubicka@ucw.cz>

PR ipa/92372
* gcc.c-torture/pr92372.c: New test.
* gcc.dg/attr-flatten-1.c: New test.
gcc/ChangeLog
gcc/cgraphunit.c
gcc/ipa-inline.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/pr92372.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/attr-flatten-1.c [new file with mode: 0644]