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.hurugalaw...@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