| Newsgroups |
gmane.linux.lfs.book |
| Message-ID |
<[email protected]> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch xry111/mips64el
in repository lfs.
commit 42e78cc389f6630d713f8ed808927b2d665569da
Author: Xi Ruoyao <[email protected]>
AuthorDate: Sat Feb 1 20:23:24 2025 +0800
mips64el: Fix nan encoding probe impreciseness with ieee754=emulated
The ieee754=emulated option was added in Linux 6.11, and with Linux >=
5.16 we can get the hardware nan encoding from /proc/cpuinfo. So we
prefer the cpuinfo report, and only use the custom probe code if cpuinfo
does not have the info (indicating an old kernel which cannot support
ieee754=emulated).
---
chapter05/gcc-pass1.xml | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml
index 4afe2cdc9..cf305fdb0 100644
--- a/chapter05/gcc-pass1.xml
+++ b/chapter05/gcc-pass1.xml
@@ -86,7 +86,8 @@ int main()
}</literal>
EOF
gcc nan2008.c -o nan2008
-if ./nan2008; then
+if ! grep -q nan_legacy /proc/cpuinfo &&
+ (grep -q nan_2008 /proc/cpuinfo || ./nan2008) then
NAN_SWITCH=--with-nan=2008
fi</userinput></screen>
@@ -226,13 +227,6 @@ fi</userinput></screen>
<xref linkend='ch-tools-chroot'/> to fail), or produce bad results
(causing test failures building some packages, for example Glibc
and Python).</para>
- <!-- TODO: If the kernel is booted with ieee754=emulated, we'll
- be just using the default of the toolchain but that's not
- always the best. If the host toolchain already uses an NaN
- encoding different from the hardware FPU, the FPU will be
- disabled and all FP instructions are emulated by the kernel.
- That's obviously very slow. But I've not figured out a
- method to probe. -->
</listitem>
</varlistentry>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
--
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page