This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix problem in FP constant folding
- From: Richard Henderson <rth at redhat dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 15 Nov 2005 17:16:01 -0800
- Subject: Re: [PATCH] Fix problem in FP constant folding
- References: <200511101306.02326.ebotcazou@adacore.com>
On Thu, Nov 10, 2005 at 01:06:02PM +0100, Eric Botcazou wrote:
> * fold-const.c (const_binop): Don't constant fold the operation
> if the result has overflowed and flag_trapping_math.
> * simplify-rtx.c (simplify_const_binary_operation): Likewise.
What happens for
static double f = HUGE_VAL + HUGE_VAL;
? We still have to be able to fold these constants in the
context of static initialization.
r~