about summary refs log tree commit diff
path: root/sysdeps/mips
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-10-19 17:32:20 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-10-19 17:32:20 +0000
commit37bb78cb8c1fb6b5813407c8856b1557359e6343 (patch)
tree7766ea22ce95621bed5d1427f04600de2340bb94 /sysdeps/mips
parentd74e6f6c0de55fc588b1ac09c88eb0fb8b8600af (diff)
downloadglibc-37bb78cb8c1fb6b5813407c8856b1557359e6343.tar.gz
glibc-37bb78cb8c1fb6b5813407c8856b1557359e6343.tar.xz
glibc-37bb78cb8c1fb6b5813407c8856b1557359e6343.zip
Install correct bits/long-double.h for MIPS64 (bug 22322).
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.
Diffstat (limited to 'sysdeps/mips')
-rw-r--r--sysdeps/mips/ieee754/bits/long-double.h (renamed from sysdeps/mips/bits/long-double.h)0
1 files changed, 0 insertions, 0 deletions
diff --git a/sysdeps/mips/bits/long-double.h b/sysdeps/mips/ieee754/bits/long-double.h
index 604188e181..604188e181 100644
--- a/sysdeps/mips/bits/long-double.h
+++ b/sysdeps/mips/ieee754/bits/long-double.h