PR tree-optimization/84725 - enable attribute nonstring for all narrow character...
authorMartin Sebor <msebor@redhat.com>
Tue, 13 Mar 2018 15:33:16 +0000 (15:33 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 13 Mar 2018 15:33:16 +0000 (09:33 -0600)
commitf99309b288733c88d5369af11a6c11dcc307ff49
tree4d57dda9109c373e52d5baa78da5e4d4925af5b9
parent9bfb28ed3c6fb702c2cab6798959679e1bbd7d09
PR tree-optimization/84725 - enable attribute nonstring for all narrow character types

gcc/c-family/ChangeLog:

PR tree-optimization/84725
* c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
with all three narrow character types, including their qualified forms.

gcc/testsuite/ChangeLog:

PR tree-optimization/84725
* c-c++-common/Wstringop-truncation-4.c: New test.
* c-c++-common/attr-nonstring-5.c: New test.

From-SVN: r258492
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wstringop-truncation-4.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/attr-nonstring-5.c [new file with mode: 0644]