diff options
author | Martin Sebor <msebor@redhat.com> | 2021-07-28 16:14:38 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2021-07-28 16:14:38 -0600 |
commit | b9cbf8c9e0bc72f59b643165247fae646560aadd (patch) | |
tree | ba826defe0728c66693746d587fa5e933ffc928e /gcc/tree-ssa-uninit.c | |
parent | 2a837de28ee94b4ec201059a9a7aaa852e6808da (diff) | |
download | gcc-b9cbf8c9e0bc72f59b643165247fae646560aadd.zip gcc-b9cbf8c9e0bc72f59b643165247fae646560aadd.tar.gz gcc-b9cbf8c9e0bc72f59b643165247fae646560aadd.tar.bz2 |
Correct -Warray-bounds handling if function pointers [PR101601].
Resolves:
PR middle-end/101601 - -Warray-bounds triggers error: arrays of functions are not meaningful
PR middle-end/101601
gcc/ChangeLog:
* gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
a pointless test.
Handle pointers to functions.
gcc/testsuite/ChangeLog:
* g++.dg/warn/Warray-bounds-25.C: New test.
* gcc.dg/Warray-bounds-85.c: New test.
Diffstat (limited to 'gcc/tree-ssa-uninit.c')
0 files changed, 0 insertions, 0 deletions