-
- Downloads
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.
Showing
- gcc/gimple-ssa-warn-alloca.c 14 additions, 9 deletionsgcc/gimple-ssa-warn-alloca.c
- gcc/testsuite/c-c++-common/Walloca-larger-than.C 21 additions, 0 deletionsgcc/testsuite/c-c++-common/Walloca-larger-than.C
- gcc/testsuite/gcc.dg/Walloca-larger-than-4.c 18 additions, 0 deletionsgcc/testsuite/gcc.dg/Walloca-larger-than-4.c
- gcc/testsuite/gcc.dg/Wvla-larger-than-5.c 38 additions, 0 deletionsgcc/testsuite/gcc.dg/Wvla-larger-than-5.c
- gcc/testsuite/gcc.dg/pr79972.c 2 additions, 1 deletiongcc/testsuite/gcc.dg/pr79972.c
Loading
Please register or sign in to comment