fold-const.c (fold): Canonicalize X + -C as X - C for floating point additions...
authorRoger Sayle <roger@eyesopen.com>
Sun, 11 Jul 2004 21:56:37 +0000 (21:56 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sun, 11 Jul 2004 21:56:37 +0000 (21:56 +0000)
commitdf23e6bbfaa8254963aa5254a851c942f3c8b594
treeacc595c4c6c4e009a369389090739103f3b7a6c8
parentabd1b60de7c2ce3fc9a2d8b56c28df7639e3735a
fold-const.c (fold): Canonicalize X + -C as X - C for floating point additions...

* fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
floating point additions, to keep real immediate constant positive.
<MINUS_EXPR>:  For floating point subtractions, only transform X - -C
into X + C, and leave positive real constants as X - C.

From-SVN: r84535
gcc/ChangeLog
gcc/fold-const.c