[Bug ipa/85734] --suggest-attribute=malloc misdiagnoses static functions
prathamesh3492 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 15 04:45:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85734
--- Comment #4 from prathamesh3492 at gcc dot gnu.org ---
Author: prathamesh3492
Date: Tue May 15 04:44:33 2018
New Revision: 260249
URL: https://gcc.gnu.org/viewcvs?rev=260249&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/ipa/pr85734.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-pure-const.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list