Re: [PATCH] Fix ubsan in gimple-fold.c (PR tree-optimization/82491).

2018-02-19 Thread Jeff Law
On 02/19/2018 05:38 AM, Martin Liška wrote: > Hi. > > The patch was suggested by Richard Biener and then Richard Sandiford helped > me to > rewrite it using poly-int. It prevents ubsan in gimple-fold. > > Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. > And it does no

[PATCH] Fix ubsan in gimple-fold.c (PR tree-optimization/82491).

2018-02-19 Thread Martin Liška
Hi. The patch was suggested by Richard Biener and then Richard Sandiford helped me to rewrite it using poly-int. It prevents ubsan in gimple-fold. Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. And it does not trigger ubsan in the test-case in gimple-fold.c. Ready to