]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Install correct bits/long-double.h for MIPS64 (bug 22322).
authorJoseph Myers <joseph@codesourcery.com>
Thu, 19 Oct 2017 17:32:20 +0000 (17:32 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 23 Oct 2017 15:49:14 +0000 (15:49 +0000)
Similar to bug 21987 for SPARC, MIPS64 wrongly installs the ldbl-128
version of bits/long-double.h, meaning incorrect results when using
headers installed from a 64-bit installation for a 32-bit build.  (I
haven't actually seen this cause build failures before its interaction
with bits/floatn.h did so - installed headers wrongly expecting
_Float128 to be available in a 32-bit configuration.)

This patch fixes the bug by moving the MIPS header to
sysdeps/mips/ieee754, which comes before sysdeps/ieee754/ldbl-128 in
the sysdeps directory ordering.  (bits/floatn.h will need a similar
fix - duplicating the ldbl-128 version for MIPS will suffice - for
headers from a 32-bit installation to be correct for 64-bit builds.)

Tested with build-many-glibcs.py (compilers build for
mips64-linux-gnu, where there was previously a libstdc++ build failure
as at
<https://sourceware.org/ml/libc-testresults/2017-q4/msg00130.html>).

[BZ #22322]
* sysdeps/mips/bits/long-double.h: Move to ....
* sysdeps/mips/ieee754/bits/long-double.h: ... here.

(cherry picked from commit 37bb78cb8c1fb6b5813407c8856b1557359e6343)

ChangeLog
NEWS
sysdeps/mips/ieee754/bits/long-double.h [moved from sysdeps/mips/bits/long-double.h with 100% similarity]

index bdb9a9aea43c713de5b99bf5396a1b1a38fd7d24..01fbb7cd773e2930dfa44a523aa2e7557920ca5a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-10-19  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #22322]
+       * sysdeps/mips/bits/long-double.h: Move to ....
+       * sysdeps/mips/ieee754/bits/long-double.h: ... here.
+
 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #21265]
diff --git a/NEWS b/NEWS
index 03adcc493e0737394d1f5fa55fcdd64aa8b76e89..1879b735e685a64c8ef12e6d198b4b9f7f22121b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -28,6 +28,7 @@ The following bugs are resolved with this release:
   [21654] nss: Fix invalid cast in group merging
   [21778] Robust mutex may deadlock
   [21972] assert macro requires operator== (int) for its argument type
+  [22322] libc: [mips64] wrong bits/long-double.h installed
 \f
 Version 2.25