Re: [PATCH] Fix ICE on invalid with -Walloca-larger-than (PR tree-optimization/80109)

2017-03-21 Thread Jeff Law
On 03/20/2017 12:51 PM, Marek Polacek wrote: We crash with this invalid testcase because we aren't properly checking what we are passing down to get_range_info, i.e., we can't pass a pointer. So fixed by checking the argument first, and calling alloca_type_and_limit if it is of a wrong type. Bo

[PATCH] Fix ICE on invalid with -Walloca-larger-than (PR tree-optimization/80109)

2017-03-20 Thread Marek Polacek
We crash with this invalid testcase because we aren't properly checking what we are passing down to get_range_info, i.e., we can't pass a pointer. So fixed by checking the argument first, and calling alloca_type_and_limit if it is of a wrong type. Bootstrapped/regtested on x86_64-linux, ok for tr