https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100920

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Eric Botcazou
<ebotca...@gcc.gnu.org>:

https://gcc.gnu.org/g:5be418dc591014b1773d59abca8fba5be34df618

commit r11-8533-g5be418dc591014b1773d59abca8fba5be34df618
Author: Eric Botcazou <ebotca...@adacore.com>
Date:   Wed Jun 9 12:37:47 2021 +0200

    Fix old thinko in warning on pointer for storage order purposes

    gcc/c
            PR c/100920
            * c-typeck.c (convert_for_assignment): Test fndecl_built_in_p to
            spot built-in functions. Do not warn on pointer assignment and
            initialization for storage order purposes if the RHS is a call
            to a DECL_IS_MALLOC function.
    gcc/testsuite/
            * gcc.dg/sso-14.c: New test.

Reply via email to