From: Janis Johnson Date: Wed, 29 Nov 2006 23:11:01 +0000 (+0000) Subject: * dfp-bit.c (DFP_TO_INT): Fix rounding mode. X-Git-Tag: releases/gcc-4.3.0~8221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d42636d4df8a54b05df92c6746d02fefed57ad9;p=thirdparty%2Fgcc.git * dfp-bit.c (DFP_TO_INT): Fix rounding mode. From-SVN: r119335 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e80cb3c00fd8..8df3d86453a0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2006-11-29 Janis Johnson + * config/dfp-bit.c (DFP_TO_INT): Fix rounding mode. + * config/dfp-bit.h (CONTEXT_ROUND): Delete. (DFP_INIT_ROUNDMODE): Define. * config/dfp-bit.c: Replace CONTEXT_ROUND with DFP_INIT_ROUNDMODE. diff --git a/gcc/config/dfp-bit.c b/gcc/config/dfp-bit.c index 9ffdd8a13f95..0d4308efc853 100644 --- a/gcc/config/dfp-bit.c +++ b/gcc/config/dfp-bit.c @@ -394,7 +394,7 @@ DFP_TO_INT (DFP_C_TYPE x) 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);