OSDN Git Service

* fold-const.c (add_double): Rename to add_double_with_sign.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Oct 2006 20:22:04 +0000 (20:22 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Oct 2006 20:22:04 +0000 (20:22 +0000)
commit81035ec1299c5ee26e838bb28dfe87801d53e51d
tree7e3609b598845139fb6a9e14f67acf3ce9219904
parentee0ff92266f2ca8a1e350da27f8c7cdc42b07ab2
* fold-const.c (add_double): Rename to add_double_with_sign.
Add 'unsigned_p' parameter and take it into account for the overflow.
(mul_double): Rename to mul_double_with_sign.
Add 'unsigned_p' parameter and take it into account for the overflow.
(fold_div_compare): Call add_double_with_sign instead of add_double
and mul_double_with_sign instead of mul_double, passing them the
unsignedness of the type.
* tree.h (add_double): Macroize.
(add_double_with_sign): New prototype.
(mul_double): Macroize.
(mul_double_with_sign): New prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117887 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/div-compare-1.c [new file with mode: 0644]
gcc/tree.h