This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix problem in FP constant folding


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]