[Bug c/100920] bogus warnings with -Wscalar-storage-order
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 9 10:40:19 GMT 2021
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
<ebotcazou@gcc.gnu.org>:
https://gcc.gnu.org/g:5be418dc591014b1773d59abca8fba5be34df618
commit r11-8533-g5be418dc591014b1773d59abca8fba5be34df618
Author: Eric Botcazou <ebotcazou@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.
More information about the Gcc-bugs
mailing list