Re: [PING] [PATCH] refine -Wstringop-truncation and -Wsizeof-pointer-memaccess for strncat of nonstrings (PR 85602)

2018-06-19 Thread Martin Sebor
On 06/19/2018 12:46 PM, Jason Merrill wrote: On Tue, Jun 19, 2018 at 2:44 PM, Jason Merrill wrote: On Tue, May 29, 2018 at 3:21 PM, Martin Sebor wrote: To make review and testing easier (thank you, Franz), attached is an updated patch rebased on top of today's trunk. (Note that the patch

Re: [PING] [PATCH] refine -Wstringop-truncation and -Wsizeof-pointer-memaccess for strncat of nonstrings (PR 85602)

2018-06-19 Thread Jason Merrill
On Tue, May 29, 2018 at 3:21 PM, Martin Sebor wrote: > To make review and testing easier (thank you, Franz), attached > is an updated patch rebased on top of today's trunk. > > (Note that the patch intentionally doesn't suppress the warning > for the submitted test case without adding the

Re: [PING] [PATCH] refine -Wstringop-truncation and -Wsizeof-pointer-memaccess for strncat of nonstrings (PR 85602)

2018-06-19 Thread Jason Merrill
On Tue, Jun 19, 2018 at 2:44 PM, Jason Merrill wrote: > On Tue, May 29, 2018 at 3:21 PM, Martin Sebor wrote: >> To make review and testing easier (thank you, Franz), attached >> is an updated patch rebased on top of today's trunk. >> >> (Note that the patch intentionally doesn't suppress the

Re: [PING] [PATCH] refine -Wstringop-truncation and -Wsizeof-pointer-memaccess for strncat of nonstrings (PR 85602)

2018-06-12 Thread Jeff Law
On 05/29/2018 01:21 PM, Martin Sebor wrote: > To make review and testing easier (thank you, Franz), attached > is an updated patch rebased on top of today's trunk. > > (Note that the patch intentionally doesn't suppress the warning > for the submitted test case without adding the nonstring 

PING 3 [PATCH] refine -Wstringop-truncation and -Wsizeof-pointer-memaccess for strncat of nonstrings (PR 85602)

2018-06-11 Thread Martin Sebor
Ping: https://gcc.gnu.org/ml/gcc-patches/2018-05/msg01671.html On 06/04/2018 05:48 PM, Martin Sebor wrote: Ping: https://gcc.gnu.org/ml/gcc-patches/2018-05/msg01671.html (In IRC last week Franz reported successfully testing the patch. Thanks again.) On 05/29/2018 01:21 PM, Martin Sebor wrote:

PING 2 [PATCH] refine -Wstringop-truncation and -Wsizeof-pointer-memaccess for strncat of nonstrings (PR 85602)

2018-06-04 Thread Martin Sebor
Ping: https://gcc.gnu.org/ml/gcc-patches/2018-05/msg01671.html (In IRC last week Franz reported successfully testing the patch. Thanks again.) On 05/29/2018 01:21 PM, Martin Sebor wrote: To make review and testing easier (thank you, Franz), attached is an updated patch rebased on top of

[PING] [PATCH] refine -Wstringop-truncation and -Wsizeof-pointer-memaccess for strncat of nonstrings (PR 85602)

2018-05-29 Thread Martin Sebor
To make review and testing easier (thank you, Franz), attached is an updated patch rebased on top of today's trunk. (Note that the patch intentionally doesn't suppress the warning for the submitted test case without adding the nonstring attribute.) On 05/25/2018 02:59 PM, Martin Sebor wrote:

Re: [PATCH] refine -Wstringop-truncation and -Wsizeof-pointer-memaccess for strncat of nonstrings (PR 85602)

2018-05-25 Thread Martin Sebor
Ping: https://gcc.gnu.org/ml/gcc-patches/2018-05/msg00869.html On 05/17/2018 08:01 PM, Martin Sebor wrote: The -Wstringop-truncation and -Wsizeof-pointer-memaccess warnings I added and enhanced, respectively, in GCC 8 are arguably overly strict for source arguments declared with the nonstring

[PATCH] refine -Wstringop-truncation and -Wsizeof-pointer-memaccess for strncat of nonstrings (PR 85602)

2018-05-17 Thread Martin Sebor
The -Wstringop-truncation and -Wsizeof-pointer-memaccess warnings I added and enhanced, respectively, in GCC 8 are arguably overly strict for source arguments declared with the nonstring attribute. For example, -Wsizeof-pointer-memaccess triggers for the strncat call below: __attribute__