[Bug middle-end/85643] attribute nonstring fails to squash -Wstringop-truncation warning at an offset
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 15 21:52:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85643
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue May 15 21:52:16 2018
New Revision: 260271
URL: https://gcc.gnu.org/viewcvs?rev=260271&root=gcc&view=rev
Log:
PR middle-end/85643 - attribute nonstring fails to squash -Wstringop-truncation
warning
gcc/ChangeLog:
PR middle-end/85643
* calls.c (get_attr_nonstring_decl): Handle MEM_REF.
gcc/testsuite/ChangeLog:
PR middle-end/85643
* c-c++-common/attr-nonstring-7.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/attr-nonstring-7.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/calls.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list