[PATCH] Fix PR 29984, PPC-SPE segfaults with MAX_EXPR <a, a>

Ian Lance Taylor iant@google.com
Tue Nov 28 22:04:00 GMT 2006


Andrew Pinski <pinskia@gmail.com> writes:

> 	* tree-ssa-reassoc.c (eliminate_duplicate_pair): Handle MAX_EXPR
> 	and MIN_EXRP.
> 
> 	* gcc.dg/tree-ssa/reassoc-12.c: New test.

This is OK.

Thanks.

> The reason why it ICEs is because the backend is not ready ready
> to handle MAX_EXPR <a, a> which was created by the reassociation pass in
> the first place.

And, in case you haven't already done it, it seems to me that you have
to fix that anyhow, for -O0.

Ian



More information about the Gcc-patches mailing list