Fix for PR tree-optimization/17892.
OKed by Roger Sayle.
From-SVN: r90395
+2004-11-10  Fariborz Jahanian <fjahanian@apple.com>
+
+       PR tree-optimization/17892
+       * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
+       MINUS_EXPR operator.
+
 2004-11-10  James A. Morrison  <phython@gcc.gnu.org>
 
        PR target/18230
 
+2004-11-10  Fariborz Jahanian <fjahanian@apple.com>
+
+        * gcc.c-torture/execute/ieee/unsafe-fp-assoc-1.c: 
+       New test for PR tree-optimization/17892.
+
 2004-11-09  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/18369
 
 {
   enum tree_code code = TREE_CODE (exp);
   return !(!flag_unsafe_math_optimizations
-           && (code == MULT_EXPR || code == PLUS_EXPR)
+           && (code == MULT_EXPR || code == PLUS_EXPR
+              || code == MINUS_EXPR)
            && FLOAT_TYPE_P (TREE_TYPE (exp)));
 }