This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] obvious fix to dfp-bit.c (checked in)
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: bje at au1 dot ibm dot com
- Date: Wed, 29 Nov 2006 15:13:37 -0800
- Subject: [PATCH] obvious fix to dfp-bit.c (checked in)
In an earlier patch I inadvertently changed the rounding mode used for
DFP to INT conversions without noticing that I had broken them. Tested
on powerpc64-linux and checked into mainline as obvious.
2006-11-29 Janis Johnson <janis187@us.ibm.com>
* dfp-bit.c (DFP_TO_INT): Fix rounding mode.
Index: gcc/config/dfp-bit.c
===================================================================
--- gcc/config/dfp-bit.c (revision 119331)
+++ gcc/config/dfp-bit.c (working copy)
@@ -394,7 +394,7 @@
decContextDefault (&context, CONTEXT_INIT);
/* Need non-default rounding mode here. */
- DFP_INIT_ROUNDMODE (context.round);
+ context.round = DEC_ROUND_DOWN;
HOST_TO_IEEE (x, &s);
TO_INTERNAL (&s, &n1);