Patch for PR17892 in FSF mainline

Fariborz Jahanian fjahanian@apple.com
Tue Nov 9 17:11:00 GMT 2004


PR17892 was to fix unsafe re-association of floating add/multiply. Same 
should be done for subtraction as
well. Following small patch does this. It is bootstrapped dejagnu 
tested on apple-ppc-darwin. Test case,
which produces incorrect results without this patch is included.

OK for mainline?

- Thanks, fariborz(fjahanian@apple.com)

ChangeLog:

2004-11-09  Fariborz Jahanian <fjahanian@apple.com>

         PR 17892 - part 2.
         * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
         MINUS_EXPR operator.
         * testsuite/gcc.c-torture/execute/ieee/unsafe-fp-assoc-1.c:
         New test.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fsf-patch-unsafe-assoc.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20041109/4ca93614/attachment.txt>


More information about the Gcc-patches mailing list