summaryrefslogtreecommitdiff
path: root/gcc/real.c
diff options
context:
space:
mode:
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-06 19:02:41 +0000
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-06 19:02:41 +0000
commit0c87fb2bac12c51b593a6196dc17aa0b9a0aba7b (patch)
tree093f146d6705962c90265309fe92cd0dc9fd825e /gcc/real.c
parent710ab45a38393276b00bbd0d8650f9d4432ca21d (diff)
downloadgcc-0c87fb2bac12c51b593a6196dc17aa0b9a0aba7b.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143128 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.c')
-rw-r--r--gcc/real.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/real.c b/gcc/real.c
index c5a16a867e1..d26b0cbd0c9 100644
--- a/gcc/real.c
+++ b/gcc/real.c
@@ -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,