PR c/81117 - Improve buffer overflow checking in strncpy - part 2
commit9d3c24b9a2b9f91a9e3e13b7097a3f93a92670b0
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Aug 2017 20:21:44 +0000 (14 20:21 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Aug 2017 20:21:44 +0000 (14 20:21 +0000)
treea055a2735dded9ec61ad2030b010e8a12e6dbd78
parentc8616982bf80f59b0fc485b5993a0adf7821ae94
PR c/81117 - Improve buffer overflow checking in strncpy - part 2

gcc/ChangeLog:

PR c/81117
* doc/extend.texi (attribute nonstring): Document new attribute.

gcc/c-family/ChangeLog:

PR c/81117
* c-attribs.c (c_common_attribute_table): Add nonstring entry.
(handle_nonstring_attribute): New function.

gcc/testsuite/ChangeLog:

PR c/81117
* c-c++-common/attr-nonstring-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251100 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog