aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2017-11-11 18:04:21 +0000
committerMartin Sebor <msebor@gcc.gnu.org>2017-11-11 11:04:21 -0700
commit6aab06c7450d1306b3ccf2aeb82882857df6446c (patch)
treea5a44443c0cab291f4865b589becbca3214e4a0b
parent42c544b0356f01207f596fcb5a07e04fd3f61e71 (diff)
downloadgcc-6aab06c7450d1306b3ccf2aeb82882857df6446c.zip
gcc-6aab06c7450d1306b3ccf2aeb82882857df6446c.tar.gz
gcc-6aab06c7450d1306b3ccf2aeb82882857df6446c.tar.bz2
re PR c/81117 (Improve buffer overflow checking in strncpy)
gcc/ChangeLog: PR c/81117 * doc/extend.texi (attribute nonstring): Remove spurious argument. From-SVN: r254659
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/doc/extend.texi2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 18224e9..58b6ef5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2017-11-11 Martin Sebor <msebor@redhat.com>
+ PR c/81117
+ * doc/extend.texi (attribute nonstring): Remove spurious argument.
+
PR bootstrap/82948
* prefic.c (translate_name): Replace strncpy with memcpy to
avoid -Wstringop-truncation.
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 63b58c0..d887378 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -5969,7 +5969,7 @@ The @code{deprecated} attribute can also be used for functions and
types (@pxref{Common Function Attributes},
@pxref{Common Type Attributes}).
-@item nonstring (@var{nonstring})
+@item nonstring
@cindex @code{nonstring} variable attribute
The @code{nonstring} variable attribute specifies that an object or member
declaration with type array of @code{char} or pointer to @code{char} is