PR middle-end/86631 - missing -Walloc-size-larger-than on ILP32 hosts
authorMartin Sebor <msebor@redhat.com>
Tue, 28 Aug 2018 19:09:38 +0000 (19:09 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 28 Aug 2018 19:09:38 +0000 (13:09 -0600)
commit0aaafa5e95df44eed3ad67ea65c9afda2dbdd493
treedbf4c33008642719c398d068222b45cd34a970c4
parentdd35da2cbef6d8bf9db86d7e66faeebb5022c881
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.

From-SVN: r263928
gcc/ChangeLog
gcc/calls.c
gcc/gimple-ssa-warn-alloca.c
gcc/stor-layout.c
gcc/testsuite/g++.dg/Walloca1.C