Re: [PATCH] Warray-bounds: Warn only for generic address spaces

2021-10-13 Thread Siddhesh Poyarekar
On 10/13/21 13:50, Richard Biener wrote: On Tue, Oct 12, 2021 at 8:34 PM Siddhesh Poyarekar wrote: The warning is falsely triggered for THREAD_SELF in glibc when accessing TCB through the segment register. I think this is a more generic bug - the warning is also bogus if the general address

Re: [PATCH] Warray-bounds: Warn only for generic address spaces

2021-10-13 Thread Richard Biener via Gcc-patches
On Tue, Oct 12, 2021 at 8:34 PM Siddhesh Poyarekar wrote: > > The warning is falsely triggered for THREAD_SELF in glibc when > accessing TCB through the segment register. I think this is a more generic bug - the warning is also bogus if the general address space is involved. Martin? >

Re: [PATCH] Warray-bounds: Warn only for generic address spaces

2021-10-12 Thread Siddhesh Poyarekar
On 10/13/21 00:36, Martin Sebor wrote: On 10/12/21 12:33 PM, Siddhesh Poyarekar wrote: The warning is falsely triggered for THREAD_SELF in glibc when accessing TCB through the segment register. Thanks for looking into it!  The Glibc warning is being tracked in PR 102630.  The root cause

Re: [PATCH] Warray-bounds: Warn only for generic address spaces

2021-10-12 Thread Martin Sebor via Gcc-patches
On 10/12/21 12:33 PM, Siddhesh Poyarekar wrote: The warning is falsely triggered for THREAD_SELF in glibc when accessing TCB through the segment register. Thanks for looking into it! The Glibc warning is being tracked in PR 102630. The root cause behind it is in compute_objsize_r in

[PATCH] Warray-bounds: Warn only for generic address spaces

2021-10-12 Thread Siddhesh Poyarekar
The warning is falsely triggered for THREAD_SELF in glibc when accessing TCB through the segment register. gcc/ChangeLog: * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Bail out for non-generic address spaces. gcc/testsuite/ChangeLog: *