Re: [testsuite] Tweak Wrestrict.c

2018-01-17 Thread Eric Botcazou
> There should be just one warning per call, and (as it is) -Wrestrict > should suppress -Wstringop-overflow. This suppression was a recent > change (r256683). Sorry, the changes indeed crossed, I'm going to revert mine. -- Eric Botcazou

Re: [testsuite] Tweak Wrestrict.c

2018-01-16 Thread Martin Sebor
On 01/16/2018 03:54 PM, Eric Botcazou wrote: This test fails on strict-alignment platforms because a call to memcpy is not turned into a simple move and thus yields an additional warning: warning: '__builtin_memcpy' writing 4 bytes into a region of size 0 overflows the destination [-Wstringop-ov

[testsuite] Tweak Wrestrict.c

2018-01-16 Thread Eric Botcazou
This test fails on strict-alignment platforms because a call to memcpy is not turned into a simple move and thus yields an additional warning: warning: '__builtin_memcpy' writing 4 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] The attached patch tweaks the test