Re: [P1] [PATCH] [PR tree-optimization/80374] Do not try to convert integer_zero_node to undesirable types

2017-04-11 Thread Richard Biener
On Mon, Apr 10, 2017 at 9:20 PM, Jeff Law wrote: > > fold_convert can fail for certain types. It can fail either by returning a > error_mark_node or triggering a gcc_assert depending on the exact situation. > > Both are problematical. This patch checks that we can convert > integer_zero_node to

Re: [P1] [PATCH] [PR tree-optimization/80374] Do not try to convert integer_zero_node to undesirable types

2017-04-10 Thread Markus Trippelsdorf
On 2017.04.10 at 13:20 -0600, Jeff Law wrote: > > fold_convert can fail for certain types. It can fail either by returning a > error_mark_node or triggering a gcc_assert depending on the exact situation. > > Both are problematical. This patch checks that we can convert > integer_zero_node to th

[P1] [PATCH] [PR tree-optimization/80374] Do not try to convert integer_zero_node to undesirable types

2017-04-10 Thread Jeff Law
fold_convert can fail for certain types. It can fail either by returning a error_mark_node or triggering a gcc_assert depending on the exact situation. Both are problematical. This patch checks that we can convert integer_zero_node to the proper type before calling fold_convert. Bootstra