From 1840f0c27011ba23f29540d509b275e558fa4cb0 Mon Sep 17 00:00:00 2001 From: Janis Johnson Date: Wed, 22 Aug 2007 17:16:44 +0000 Subject: [PATCH] * config/dfp-bit.c (DFP_TO_DFP): Check for overflow. From-SVN: r127710 --- gcc/ChangeLog | 2 ++ gcc/config/dfp-bit.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ec467729a08..ea21bd3e9c9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2007-08-22 Janis Johnson + * config/dfp-bit.c (DFP_TO_DFP): Check for overflow. + * doc/libgcc.texi (Decimal float library routines): Fix formatting and rearrange floating point conversion functions into different categories. diff --git a/gcc/config/dfp-bit.c b/gcc/config/dfp-bit.c index b472792c498..325306a5460 100644 --- a/gcc/config/dfp-bit.c +++ b/gcc/config/dfp-bit.c @@ -414,7 +414,8 @@ DFP_TO_DFP (DFP_C_TYPE f_from) { /* decNumber exception flags we care about here. */ int ieee_flags; - int dec_flags = DEC_IEEE_854_Inexact | DEC_IEEE_854_Invalid_operation; + int dec_flags = DEC_IEEE_854_Inexact | DEC_IEEE_854_Invalid_operation + | DEC_IEEE_854_Overflow; dec_flags &= context.status; ieee_flags = DFP_IEEE_FLAGS (dec_flags); if (ieee_flags != 0)