diff options
author | Janis Johnson <janis187@us.ibm.com> | 2007-08-22 17:16:44 +0000 |
---|---|---|
committer | Janis Johnson <janis@gcc.gnu.org> | 2007-08-22 17:16:44 +0000 |
commit | 1840f0c27011ba23f29540d509b275e558fa4cb0 (patch) | |
tree | 52fa5f4eb3455b0896eceab6377964e33cf2a69c /gcc/config/dfp-bit.c | |
parent | e2311f7a29f3de7fc2d83feea1a1ac1b63d0f408 (diff) | |
download | gcc-1840f0c27011ba23f29540d509b275e558fa4cb0.zip gcc-1840f0c27011ba23f29540d509b275e558fa4cb0.tar.gz gcc-1840f0c27011ba23f29540d509b275e558fa4cb0.tar.bz2 |
* config/dfp-bit.c (DFP_TO_DFP): Check for overflow.
From-SVN: r127710
Diffstat (limited to 'gcc/config/dfp-bit.c')
-rw-r--r-- | gcc/config/dfp-bit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/dfp-bit.c b/gcc/config/dfp-bit.c index b472792..325306a 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) |