]> git.ipfire.org Git - thirdparty/gcc.git/commit
fold-const.c (add_double): Rename to add_double_with_sign.
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 19 Oct 2006 20:25:18 +0000 (20:25 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 19 Oct 2006 20:25:18 +0000 (20:25 +0000)
commitbcb1d3ce7a50768edb280244ff80d840f994907b
tree595bccd4798cf12ec004e6d2b50110d1e5c2d00d
parent231a7547d93c8058363b49df34d31aa6ea98e54c
fold-const.c (add_double): Rename to add_double_with_sign.

* 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.

From-SVN: r117889
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