PR middle-end/97391 - bogus -Warray-bounds accessing a multidimensional array parameter
authorMartin Sebor <msebor@redhat.com>
Wed, 14 Oct 2020 21:19:39 +0000 (15:19 -0600)
committerMartin Sebor <msebor@redhat.com>
Wed, 14 Oct 2020 21:36:24 +0000 (15:36 -0600)
commit14d83c6f584c321989b43526dc9437de4381aa47
tree51e8512a715afcef812ff500efd1bac8d7c0b808
parent34efa5c2a84a8c7c7beb855dec24a321eebcbd6b
PR middle-end/97391 - bogus -Warray-bounds accessing a multidimensional array parameter

gcc/ChangeLog:

PR middle-end/97391
* builtins.c (gimple_parm_array_size): Peel off one less layer
of array types.

gcc/testsuite/ChangeLog:

PR middle-end/97391
* gcc.dg/Warray-bounds-68.c: New test.
gcc/builtins.c
gcc/testsuite/gcc.dg/Warray-bounds-68.c [new file with mode: 0644]