[Bug tree-optimization/100510] bogus -Wvla-large-than with -Walloca
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 10 20:03:48 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100510
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <msebor@gcc.gnu.org>:
https://gcc.gnu.org/g:f974b54b8a0c330e9dd2b43ebc940100d601df0f
commit r12-690-gf974b54b8a0c330e9dd2b43ebc940100d601df0f
Author: Martin Sebor <msebor@redhat.com>
Date: Mon May 10 14:00:04 2021 -0600
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.
More information about the Gcc-bugs
mailing list