Re: Question about tree-switch-conversion.c

2010-08-11 Thread Richard Guenther
On Tue, Aug 10, 2010 at 6:48 PM, Ian Bolton ian.bol...@arm.com wrote: I am in the process of fixing PR44328 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44328) The problem is that gen_inbound_check in tree-switch-conversion.c subtracts info.range_min from info.index_expr, which can cause the

Question about tree-switch-conversion.c

2010-08-10 Thread Ian Bolton
I am in the process of fixing PR44328 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44328) The problem is that gen_inbound_check in tree-switch-conversion.c subtracts info.range_min from info.index_expr, which can cause the MIN and MAX values for info.index_expr to become invalid. For example: