* fold-const.c (fold): Reassociate also (x - mult) + mult and
commit97c2d44fc222dc1fc703bf570fcc75a12e9f3af7
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Nov 2004 21:31:20 +0000 (2 21:31 +0000)
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Nov 2004 21:31:20 +0000 (2 21:31 +0000)
treee48aabceb4bd08808fc31d0bf20e2e5d8949bada
parent0abf128a9136437ee43464a22e00309cd27d6c91
* fold-const.c (fold): Reassociate also (x - mult) + mult and
(mult - x) + mult.  Cast operands of expression after applying
distributive law to the correct types.  Apply distributive law
to a * c - b * c for all non-float types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90000 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c