This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r117889 - in /branches/gcc-4_0-branch/gcc: Chan...
- From: ebotcazou at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 19 Oct 2006 20:25:19 -0000
- Subject: r117889 - in /branches/gcc-4_0-branch/gcc: Chan...
Author: ebotcazou
Date: Thu Oct 19 20:25:18 2006
New Revision: 117889
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117889
Log:
* 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.
Added:
branches/gcc-4_0-branch/gcc/testsuite/gcc.dg/div-compare-1.c
Modified:
branches/gcc-4_0-branch/gcc/ChangeLog
branches/gcc-4_0-branch/gcc/fold-const.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
branches/gcc-4_0-branch/gcc/tree.h