re PR middle-end/79809 (ICE in alloca_call_type, at gimple-ssa-warn-alloca.c:282)
authorMarek Polacek <polacek@redhat.com>
Tue, 7 Mar 2017 17:30:53 +0000 (17:30 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 7 Mar 2017 17:30:53 +0000 (17:30 +0000)
commitd8a90142db624db1f1db43de334e98d02a4dcfd2
treeb506863f823b1b90ca1ad85d57dff8f3092d452d
parentec38330401cb7579471079424a62c644d41c0dc3
re PR middle-end/79809 (ICE in alloca_call_type, at gimple-ssa-warn-alloca.c:282)

PR middle-end/79809
* gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
(alloca_call_type): Likewise.

* g++.dg/Walloca1.C: New test.

From-SVN: r245955
gcc/ChangeLog
gcc/gimple-ssa-warn-alloca.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/Walloca1.C [new file with mode: 0644]