mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-04 02:40:06 +00:00
2f7f3cd8cd
float128 on powerpc64le requires the addition of the ieee754/float128 sysdep, whereas powerpc64 doesn't. This requires creating a bunch of submachine and cpu directories and Implies files which just point towards their powerpc64 equivalent. Tested on P7, P8, and generic powerpc64le targets with and without multiarch. * sysdeps/powerpc/powerpc64le/Implies: New file. * sysdeps/powerpc/powerpc64le/fpu/Implies: New file. * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: New file. * sysdeps/powerpc/powerpc64le/multiarch/Implies: New file. * sysdeps/powerpc/powerpc64le/power7/Implies: New file. * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: New file. * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: New file. * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: New file. * sysdeps/powerpc/powerpc64le/power8/Implies: New file. * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: New file. * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: New file. * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: New file. * sysdeps/powerpc/powerpc64le/power9/Implies: New file. * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: New file. * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: New file. * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: New file. * sysdeps/powerpc/preconfigure: New file. * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: New file. * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: New file.
21 lines
506 B
Plaintext
21 lines
506 B
Plaintext
# preconfigure fragment for powerpc.
|
|
|
|
case "$machine" in
|
|
powerpc64le)
|
|
base_machine=powerpc machine=powerpc/powerpc64le
|
|
;;
|
|
powerpc64*)
|
|
base_machine=powerpc machine=powerpc/powerpc64
|
|
;;
|
|
powerpc*)
|
|
# Check for e500.
|
|
$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null > conftest.i
|
|
if grep -q __NO_FPRS__ conftest.i && ! grep -q _SOFT_FLOAT conftest.i; then
|
|
base_machine=powerpc machine=powerpc/powerpc32/e500
|
|
else
|
|
base_machine=powerpc machine=powerpc/powerpc32
|
|
fi
|
|
rm -f conftest.i
|
|
;;
|
|
esac
|