re PR ipa/85734 (--suggest-attribute=malloc misdiagnoses static functions)
commit0fac5f2a7f15974deabf6432f4f510d0f4bcc6bc
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Tue, 15 May 2018 04:44:33 +0000 (15 04:44 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Tue, 15 May 2018 04:44:33 +0000 (15 04:44 +0000)
tree8f4a374e2fe65e6e08730920207a99968ad8fe0c
parenta25c2c79667effe27af171e91818fa757ffb0029
re PR ipa/85734 (--suggest-attribute=malloc misdiagnoses static functions)

2018-05-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR ipa/85734
* ipa-pure-const.c (warn_function_malloc): Pass value of known_finite param
as true in call to suggest_attribute.

testsuite/
* gcc.dg/ipa/pr85734.c: New test.

From-SVN: r260249
gcc/ChangeLog
gcc/ipa-pure-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr85734.c [new file with mode: 0644]