diff options
author | Martin Sebor <msebor@redhat.com> | 2021-05-10 14:00:04 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2021-05-10 14:02:35 -0600 |
commit | f974b54b8a0c330e9dd2b43ebc940100d601df0f (patch) | |
tree | 43298bab245d60accec860e2f6409f991bf1aef1 /gcc/go | |
parent | 51d89e61f7ebfe75ca752e62bd29b58cb957235c (diff) | |
download | gcc-f974b54b8a0c330e9dd2b43ebc940100d601df0f.zip gcc-f974b54b8a0c330e9dd2b43ebc940100d601df0f.tar.gz gcc-f974b54b8a0c330e9dd2b43ebc940100d601df0f.tar.bz2 |
Avoid -Walloca-larger-than and -Wvla-larger-than false postives and negatives.
Resolves:
PR middle-end/100425 - missing -Walloca-larger-than with -O0
PR middle-end/100510 - bogus -Wvla-large-than with -Walloca
gcc/ChangeLog:
PR middle-end/100425
PR middle-end/100510
* gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
(pass_walloca::xlimit_certain_p): ...to this.
(pass_walloca::gate): Execute for any kind of handled warning.
(pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
warnings when xlimit_certain_p is set.
gcc/testsuite/ChangeLog:
PR middle-end/100425
PR middle-end/100510
* c-c++-common/Walloca-larger-than.C: New test.
* gcc.dg/Walloca-larger-than-4.c: New test.
* gcc.dg/Wvla-larger-than-5.c: New test.
* gcc.dg/pr79972.c: Remove unexpected warning directive.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions