This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix bug in fold_div_compare
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 18 Oct 2006 07:14:27 +0200
- Subject: Re: [PATCH] Fix bug in fold_div_compare
- References: <200610102208.02750.ebotcazou@adacore.com>
> 2006-10-10 Eric Botcazou <ebotcazou@adacore.com>
>
> * 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.
Ping: http://gcc.gnu.org/ml/gcc-patches/2006-10/msg00576.html
--
Eric Botcazou