Commit 1840f0c2 by Janis Johnson Committed by Janis Johnson

* config/dfp-bit.c (DFP_TO_DFP): Check for overflow.

From-SVN: r127710
parent e2311f7a
2007-08-22 Janis Johnson <janis187@us.ibm.com>
* 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.
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment