diff options
author | Janis Johnson <janis187@us.ibm.com> | 2009-01-06 19:02:41 +0000 |
---|---|---|
committer | Janis Johnson <janis@gcc.gnu.org> | 2009-01-06 19:02:41 +0000 |
commit | c52ec94809807483ddf593e370daabb68f57a772 (patch) | |
tree | 093f146d6705962c90265309fe92cd0dc9fd825e /gcc/real.c | |
parent | 300240e181a3dd4823f47cfd62be2b0c23dd4342 (diff) | |
download | gcc-c52ec94809807483ddf593e370daabb68f57a772.zip gcc-c52ec94809807483ddf593e370daabb68f57a772.tar.gz gcc-c52ec94809807483ddf593e370daabb68f57a772.tar.bz2 |
re PR c/34252 (DEC32_MIN_EXP, DEC32_MAX_EXP don't match TR 24732)
gcc/
PR c/34252
* ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
* real.c (decimal_single_format): Correct values of emin and emax.
(decimal_double_format): Ditto.
(decimal_quad_format): Ditto.
* c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
computation of DECnn_MIN and DECnn_MAX for corrected values of
emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
__DECnn_MIN__, and adjust its computation for the corrected value
of emin.
gcc/testsuite/
PR c/34252
* gcc.dg/dfp/decfloat-constants.c: Check for DECnn_SUBNORMAL_MIN
instead of DECnn_DEN. Support -DDBG to list lines that fail.
From-SVN: r143128
Diffstat (limited to 'gcc/real.c')
-rw-r--r-- | gcc/real.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1,6 +1,6 @@ /* real.c - software floating point emulation. - Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2002, 2003, 2004, 2005, 2007, 2008 Free Software Foundation, Inc. + Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002, + 2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc. Contributed by Stephen L. Moshier (moshier@world.std.com). Re-written by Richard Henderson <rth@redhat.com> @@ -4447,8 +4447,8 @@ const struct real_format decimal_single_format = 10, 7, 7, - -95, - 96, + -94, + 97, 31, 31, false, @@ -4469,8 +4469,8 @@ const struct real_format decimal_double_format = 10, 16, 16, - -383, - 384, + -382, + 385, 63, 63, false, @@ -4491,8 +4491,8 @@ const struct real_format decimal_quad_format = 10, 34, 34, - -6143, - 6144, + -6142, + 6145, 127, 127, false, |