[PATCH] Fix PR23471
Marc Glisse
marc.glisse@inria.fr
Thu Mar 31 09:25:00 GMT 2016
On Thu, 31 Mar 2016, Hurugalawadi, Naveen wrote:
> Please find attached the patch that fixes the tree optimization 23471.
>
> Please review the patch and let me know if its okay?
>
> Regression tested on X86_64.
>
> Thanks,
> Naveen
>
> 2016-03-31 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
>
> * fold-const.c (tree_binary_nonnegative_warnv_p) : Handle the case
> a * a; where it should be positive always.
>
> * gcc.dg/pr23471.c: New testcase.
Er, the code just below your patch should already handle this case, no?
--
Marc Glisse
More information about the Gcc-patches
mailing list