]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR middle-end/94004 - missing -Walloca on calls to alloca due to -Wno-system-headers
authorMartin Sebor <msebor@redhat.com>
Wed, 25 Mar 2020 16:48:13 +0000 (10:48 -0600)
committerMartin Sebor <msebor@redhat.com>
Wed, 25 Mar 2020 16:48:13 +0000 (10:48 -0600)
commitb5228b1bc8cb81be494f5b5faa68b6b859ce0227
treef5dd2542a72f62d6682b0a2abe62045b7e95babb
parent713ecb3d417363a4b12c725b335fce10355da206
PR middle-end/94004 - missing -Walloca on calls to alloca due to -Wno-system-headers

gcc/testsuite/ChangeLog:

PR middle-end/94004
* gcc.dg/Walloca-larger-than-3.c: New test.
* gcc.dg/Walloca-larger-than-3.h: New test header.
* gcc.dg/Wvla-larger-than-4.c: New test.

gcc/ChangeLog:

PR middle-end/94004
* gimple-ssa-warn-alloca.c (pass_walloca::execute): Issue warnings
even for alloca calls resulting from system macro expansion.
Include inlining context in all warnings.
gcc/ChangeLog
gcc/gimple-ssa-warn-alloca.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Walloca-larger-than-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Walloca-larger-than-3.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wvla-larger-than-4.c [new file with mode: 0644]