Re: Fix UB in int_const_binop

2019-04-18 Thread Richard Biener
On Thu, Apr 18, 2019 at 11:16 AM Richard Sandiford wrote: > > When testing PR 85164, the baseline bootstrap-ubsan results had > a lot of failures from int_const_binop. This is because with the > new overflow handling we can sometimes do: > > poly_res = res; > > on an uninitialised res. > >

Fix UB in int_const_binop

2019-04-18 Thread Richard Sandiford
When testing PR 85164, the baseline bootstrap-ubsan results had a lot of failures from int_const_binop. This is because with the new overflow handling we can sometimes do: poly_res = res; on an uninitialised res. Tested with bootstrap-ubsan on aarch64-linux-gnu and x86_64-linux-gnu. OK to