From: Jakub Jelinek Date: Sat, 16 Sep 2017 18:33:53 +0000 (+0200) Subject: re PR libquadmath/65757 (gfortran gives incorrect result for anint with real*16 argument) X-Git-Tag: releases/gcc-5.5.0~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f691285eaac103ee89f2e220420cb64f557fe33;p=thirdparty%2Fgcc.git re PR libquadmath/65757 (gfortran gives incorrect result for anint with real*16 argument) PR libquadmath/65757 * math/roundq.c: Cherry-pick upstream glibc 2015-04-28 change. From-SVN: r252880 --- diff --git a/libquadmath/ChangeLog b/libquadmath/ChangeLog index 45a160998b71..a44116343832 100644 --- a/libquadmath/ChangeLog +++ b/libquadmath/ChangeLog @@ -1,3 +1,8 @@ +2017-09-16 Jakub Jelinek + + PR libquadmath/65757 + * math/roundq.c: Cherry-pick upstream glibc 2015-04-28 change. + 2016-06-03 Release Manager * GCC 5.4.0 released. diff --git a/libquadmath/math/roundq.c b/libquadmath/math/roundq.c index 7c9d640e9332..adcb94a8fafe 100644 --- a/libquadmath/math/roundq.c +++ b/libquadmath/math/roundq.c @@ -1,5 +1,5 @@ /* Round __float128 to integer away from zero. - Copyright (C) 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1997-2017 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1997 and Jakub Jelinek , 1999. @@ -32,7 +32,7 @@ roundq (__float128 x) GET_FLT128_WORDS64 (i0, i1, x); j0 = ((i0 >> 48) & 0x7fff) - 0x3fff; - if (j0 < 31) + if (j0 < 48) { if (j0 < 0) {