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 not trigger ubsan in the test-case in gimple-fold.c.
>
> Ready to be installed?
> Martin
>
> gcc/ChangeLog:
>
> 2018-02-19 Martin Liska <mli...@suse.cz>
> Richard Sandiford <richard.sandif...@linaro.org>
>
> PR tree-optimization/82491
> * gimple-fold.c (get_base_constructor): Make earlier bail out
> to prevent ubsan.
OK.
jeff