Re: [PATCH] avoid -Wrestrict on sprintf %p with destination as argument (PR 84919)

2020-01-22 Thread Martin Sebor
On 1/22/20 9:35 PM, Jeff Law wrote: On Wed, 2020-01-22 at 15:59 +0100, Martin Sebor wrote: The early front-end only implementation of -Wrestrict that's still present in GCC 10 issues a false postive for %p arguments that are the same as the destination. Bug 84919 reports an instance of this fal

Re: [PATCH] avoid -Wrestrict on sprintf %p with destination as argument (PR 84919)

2020-01-22 Thread Jeff Law
On Wed, 2020-01-22 at 15:59 +0100, Martin Sebor wrote: > The early front-end only implementation of -Wrestrict that's still > present in GCC 10 issues a false postive for %p arguments that are > the same as the destination. Bug 84919 reports an instance of this > false positive in the Linux kernel

[PATCH] avoid -Wrestrict on sprintf %p with destination as argument (PR 84919)

2020-01-22 Thread Martin Sebor
The early front-end only implementation of -Wrestrict that's still present in GCC 10 issues a false postive for %p arguments that are the same as the destination. Bug 84919 reports an instance of this false positive in the Linux kernel. That attached patch suppresses the front-end warning for th