Re: [PATCH][RFC] Fix UBSAN in postreload-gcse.c (PR rtl-optimization/87868).

2018-11-07 Thread Martin Liška
On 11/6/18 7:55 PM, Jeff Law wrote: > On 11/6/18 7:05 AM, Martin Liška wrote: >> Hi. >> >> The patch is adding a check overflow in eliminate_partially_redundant_load. >> Question is whether the usage of conditional compilation of >> __builtin_mul_overflow >> is fine? >> >> Thanks, >> Martin >> >>

Re: [PATCH][RFC] Fix UBSAN in postreload-gcse.c (PR rtl-optimization/87868).

2018-11-06 Thread Jeff Law
On 11/6/18 7:05 AM, Martin Liška wrote: > Hi. > > The patch is adding a check overflow in eliminate_partially_redundant_load. > Question is whether the usage of conditional compilation of > __builtin_mul_overflow > is fine? > > Thanks, > Martin > > gcc/ChangeLog: > > 2018-11-06 Martin Liska

[PATCH][RFC] Fix UBSAN in postreload-gcse.c (PR rtl-optimization/87868).

2018-11-06 Thread Martin Liška
Hi. The patch is adding a check overflow in eliminate_partially_redundant_load. Question is whether the usage of conditional compilation of __builtin_mul_overflow is fine? Thanks, Martin gcc/ChangeLog: 2018-11-06 Martin Liska PR rtl-optimization/87868 * postreload-gcse.c (