https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83648
--- Comment #3 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Tue May 15 06:07:48 2018 New Revision: 260250 URL: https://gcc.gnu.org/viewcvs?rev=260250&root=gcc&view=rev Log: 2018-05-15 Prathamesh Kulkarni <prathamesh.kulka...@linaro.org> PR tree-optimization/83648 * ipa-pure-const.c (malloc_candidate_p): Allow function with NULL return value as malloc candidate. testsuite/ * gcc.dg/tree-ssa/pr83648.c: New test. * gcc.dg/tree-ssa/pr83648-2.c: Likewise. Added: trunk/gcc/testsuite/gcc.dg/tree-ssa/pr83648-2.c trunk/gcc/testsuite/gcc.dg/tree-ssa/pr83648.c Modified: trunk/gcc/ChangeLog trunk/gcc/ipa-pure-const.c trunk/gcc/testsuite/ChangeLog