From: Martin Sebor Date: Sat, 11 Nov 2017 18:04:21 +0000 (+0000) Subject: re PR c/81117 (Improve buffer overflow checking in strncpy) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6aab06c7450d1306b3ccf2aeb82882857df6446c;p=gcc.git 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 --- 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