Array out of bounds

Tom de Vries tdevries@suse.de
Mon Sep 6 10:24:37 GMT 2021


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 <jbglaw@lug-owl.de> 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


More information about the Gdb mailing list