This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Misc libquadmath backports from upstram glibc (PR libquadmath/65757)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>, "Joseph S. Myers" <joseph at codesourcery dot com>, "Carlos O'Donell" <carlos at redhat dot com>, Florian Weimer <fweimer at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 20 Jul 2017 10:31:07 +0200
- Subject: Re: [PATCH] Misc libquadmath backports from upstram glibc (PR libquadmath/65757)
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jakub at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com D94567F407
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com D94567F407
- References: <20170713204706.GT2123@tucnak>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Jul 13, 2017 at 10:47:06PM +0200, Jakub Jelinek wrote:
> This patch is a manual backport of the 2012-2017 sysdeps/ieee754/ldbl-128/
> glibc changes into libquadmath. As mentioned in the PR, which has
> detailed git diff commands, I've left *jnl.c, *lgamma* and x2y2m1l.c
> changes so far, those were too large, and the long double -> _Float128
> and 123.456L -> L(123.456) changes.
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, no further testing
> done though. I'll commit this next week unless I hear objections.
> Of course, further testing e.g. using glibc testsuite would be greatly
> appreciated.
The patch is now in since yesterday, please let me know if you find any
issues. For 7.x, I've just cherry-picked the single small change instead:
2017-07-20 Jakub Jelinek <jakub@redhat.com>
PR libquadmath/65757
* math/roundq.c: Cherry-pick upstream glibc 2015-04-28 change.
--- libquadmath/math/roundq.c.jj 2017-04-20 12:16:38.000000000 +0200
+++ libquadmath/math/roundq.c 2017-07-20 10:26:15.290890331 +0200
@@ -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 <drepper@cygnus.com>, 1997 and
Jakub Jelinek <jj@ultra.linux.cz>, 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)
{
Jakub