Drop MALLOC attribute for void functions.
authorMartin Liska <mliska@suse.cz>
Tue, 18 Feb 2020 13:39:41 +0000 (14:39 +0100)
committerMartin Liska <mliska@suse.cz>
Tue, 18 Feb 2020 13:39:41 +0000 (14:39 +0100)
commit33351ff9faa21c4c1af377d661a52ac0ce366db3
tree7d760e87a084594b68ebff4ced557ee2ffb57460
parentea0b12523d0d9a9059b5173ce9653b92ddfb284f
Drop MALLOC attribute for void functions.

PR ipa/93583
* cgraph.c (cgraph_node::verify_node): Verify MALLOC attribute
and return type of functions.
* ipa-param-manipulation.c (ipa_param_adjustments::adjust_decl):
Drop MALLOC attribute for void functions.
* ipa-pure-const.c (funct_state_summary_t::duplicate): Drop
malloc_state for a new VOID clone.
PR ipa/93583
* gcc.dg/ipa/pr93583.c: New test.
gcc/ChangeLog
gcc/cgraph.c
gcc/ipa-param-manipulation.c
gcc/ipa-pure-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr93583.c [new file with mode: 0644]