PR middle-end/86631 - missing -Walloc-size-larger-than on ILP32 hosts
commit48cccec045fd67f71594c2a7af9e5c5ed024bf21
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Aug 2018 19:09:38 +0000 (28 19:09 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Aug 2018 19:09:38 +0000 (28 19:09 +0000)
treedbf4c33008642719c398d068222b45cd34a970c4
parent79ec46f461e9699a8fbb65718287c23d80efeeb2
PR middle-end/86631 - missing -Walloc-size-larger-than on ILP32 hosts

gcc/ChangeLog:

PR middle-end/86631
* calls.c (alloc_max_size): Treat HOST_WIDE_INT special.
* gimple-ssa-warn-alloca.c (adjusted_warn_limit): New function.
(pass_walloca::gate): Use it.
(alloca_call_type): Same.
(pass_walloca::execute): Same.
* stor-layout.c (layout_decl): Treat HOST_WIDE_INT special.

gcc/testsuite/ChangeLog:

PR middle-end/86631
* g++.dg/Walloca1.C: Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263928 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/calls.c
gcc/gimple-ssa-warn-alloca.c
gcc/stor-layout.c
gcc/testsuite/g++.dg/Walloca1.C