This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/83648] missing -Wsuggest-attribute=malloc on a trivial malloc-like function


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.kulkarni@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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]