From 6aab06c7450d1306b3ccf2aeb82882857df6446c Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Sat, 11 Nov 2017 18:04:21 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 3 +++ gcc/doc/extend.texi | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 18224e9ccba..58b6ef5a7a8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2017-11-11 Martin Sebor + 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 63b58c0681e..d887378480b 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 -- 2.30.2