PR middle-end/85643 - attribute nonstring fails to squash -Wstringop-truncation warning
authorMartin Sebor <msebor@redhat.com>
Tue, 15 May 2018 21:52:16 +0000 (21:52 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 15 May 2018 21:52:16 +0000 (15:52 -0600)
commit275605696b6754f178af04ef6187b1faed6092e9
tree10e11bad25a9ba1a4554e39dcfae31ec8bfc2f17
parentab168044871f9984ba878720b6391b20cc77ebb2
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.

From-SVN: r260271
gcc/ChangeLog
gcc/calls.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/attr-nonstring-7.c [new file with mode: 0644]