re PR tree-optimization/79972 (ICE in tree check: expected ssa_name, have var_decl...
commit72772e6761c5930db346e5cdc2a1537585940502
authorJakub Jelinek <jakub@redhat.com>
Fri, 10 Mar 2017 07:55:00 +0000 (10 08:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 10 Mar 2017 07:55:00 +0000 (10 08:55 +0100)
tree3b1b43eaa52fe7c979ccc7ca4b843381b7b23f9c
parent5558f089e39350824d7bc3d5467f72e1e90b2fae
re PR tree-optimization/79972 (ICE in tree check: expected ssa_name, have var_decl in get_range_info, at tree-ssanames.c:377 w/ -Walloca -Wvla-larger-than=364854541)

PR tree-optimization/79972
* gimple-ssa-warn-alloca.c (alloca_call_type): Only call
get_range_info on SSA_NAMEs.  Formatting fixes.

* gcc.dg/pr79972.c: New test.

From-SVN: r246022
gcc/ChangeLog
gcc/gimple-ssa-warn-alloca.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr79972.c [new file with mode: 0644]