Re: [PATCH libatomic/arm] avoid warning on constant addresses (PR 101379)

2021-07-21 Thread Martin Sebor via Gcc-patches
On 7/21/21 10:41 AM, Kyrylo Tkachov wrote: -Original Message- From: Gcc-patches On Behalf Of Martin Sebor via Gcc-patches Sent: 10 July 2021 00:11 To: gcc-patches ; Christophe Lyon Subject: [PATCH libatomic/arm] avoid warning on constant addresses (PR 101379) The attached tweak

RE: [PATCH libatomic/arm] avoid warning on constant addresses (PR 101379)

2021-07-21 Thread Kyrylo Tkachov via Gcc-patches
> -Original Message- > From: Gcc-patches bounces+kyrylo.tkachov=arm@gcc.gnu.org> On Behalf Of Martin Sebor > via Gcc-patches > Sent: 10 July 2021 00:11 > To: gcc-patches ; Christophe Lyon > > Subject: [PATCH libatomic/arm] avoid warning on constant addresse

Re: [PATCH libatomic/arm] avoid warning on constant addresses (PR 101379)

2021-07-19 Thread Thomas Schwinge
Hi! On 2021-07-16T15:11:24-0600, Martin Sebor via Gcc-patches wrote: > On 7/16/21 11:42 AM, Thomas Schwinge wrote: >> On 2021-07-09T17:11:25-0600, Martin Sebor via Gcc-patches >> wrote: >>> The attached tweak avoids the new -Warray-bounds instances when >>> building libatomic for arm. Christop

Re: [PATCH libatomic/arm] avoid warning on constant addresses (PR 101379)

2021-07-17 Thread Andrew Stubbs
On 16/07/2021 18:42, Thomas Schwinge wrote: Of course, we may simply re-work the libgomp/GCN code -- but don't we first need to answer the question whether the current code is actually "bad"? Aren't we going to get a lot of similar reports from kernel/embedded/other low-level software developers

Re: [PATCH libatomic/arm] avoid warning on constant addresses (PR 101379)

2021-07-16 Thread Martin Sebor via Gcc-patches
On 7/16/21 11:42 AM, Thomas Schwinge wrote: Hi Martin! On 2021-07-09T17:11:25-0600, Martin Sebor via Gcc-patches wrote: The attached tweak avoids the new -Warray-bounds instances when building libatomic for arm. Christophe confirms it resolves the problem (thank you!) As Abid has just repor

Re: [PATCH libatomic/arm] avoid warning on constant addresses (PR 101379)

2021-07-16 Thread Thomas Schwinge
Hi Martin! On 2021-07-09T17:11:25-0600, Martin Sebor via Gcc-patches wrote: > The attached tweak avoids the new -Warray-bounds instances when > building libatomic for arm. Christophe confirms it resolves > the problem (thank you!) As Abid has just reported in

Re: [PATCH libatomic/arm] avoid warning on constant addresses (PR 101379)

2021-07-15 Thread Christophe Lyon via Gcc-patches
Hi, On Sat, Jul 10, 2021 at 1:11 AM Martin Sebor via Gcc-patches < gcc-patches@gcc.gnu.org> wrote: > The attached tweak avoids the new -Warray-bounds instances when > building libatomic for arm. Christophe confirms it resolves > the problem (thank you!) > > As we have discussed, the main goal of

[PATCH libatomic/arm] avoid warning on constant addresses (PR 101379)

2021-07-09 Thread Martin Sebor via Gcc-patches
The attached tweak avoids the new -Warray-bounds instances when building libatomic for arm. Christophe confirms it resolves the problem (thank you!) As we have discussed, the main goal of this class of warnings is to detect accesses at addresses derived from null pointers (e.g., to struct members