]> gcc.gnu.org Git - gcc.git/commit
PR middle-end/99502 - missing -Warray-bounds on partial out of bounds
authorMartin Sebor <msebor@redhat.com>
Thu, 18 Mar 2021 19:36:09 +0000 (13:36 -0600)
committerMartin Sebor <msebor@redhat.com>
Thu, 18 Mar 2021 19:38:00 +0000 (13:38 -0600)
commit30b10dacd0a8c926c22eab7d4aeb52ff86534acf
treeb39b32d49992bc87c3a9f7b7b349bbce699e5aef
parentc5e55673b486533c4d6d19ac903460f70b48f11a
PR middle-end/99502 - missing -Warray-bounds on partial out of bounds

gcc/ChangeLog:

PR middle-end/99502
* gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
(inbounds_memaccess_p): ...to this.  Check the ending offset of
the accessed member.

gcc/testsuite/ChangeLog:

PR middle-end/99502
* g++.dg/warn/Warray-bounds-22.C: New test.
* g++.dg/warn/Warray-bounds-23.C: New test.
* g++.dg/warn/Warray-bounds-24.C: New test.
gcc/gimple-array-bounds.cc
gcc/testsuite/g++.dg/warn/Warray-bounds-22.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Warray-bounds-23.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Warray-bounds-24.C [new file with mode: 0644]
This page took 0.064676 seconds and 6 git commands to generate.