Re: Array out of bounds

Tom de Vries via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On 9/6/21 3:48 AM, Simon Marchi via Gdb wrote:
> 
> 
> On 2021-09-05 2:06 p.m., Jan-Benedict Glaw wrote:
>> Hi!
>>
>> On Sun, 2021-09-05 08:40:35 +0200, Jan-Benedict Glaw <[email protected]> wrote:
>>> Hi!
>>>
>>> As I started with automated building/testing the GNU Toolchain again,
>>> I found this when building GDB (make all-gdb) with a fairly recent GCC
>>> on a Linux system (PC) when GDB is configured for
>>> --target=aarch64-linux:
>>
>> Just to add: Seems to be independent of a target. Produces the same
>> warning/error for all tested targets using a current GCC.
>>
>> Thanks,
>>   Jan-Benedict
>>
> 
> I just built gcc at 66bba4dc263d ("Daily bump."), and I don't see it.
> 

I've managed to reproduce, filed as PR gcc/102216 - "False positive
warray-bounds with -O2" @
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102216 .

Thanks,
- Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.