mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 00:31:08 +00:00
3a33b06969
The creation of the divergent sysdeps directory for powerpc64le
commit 2f7f3cd8cd
Author: Paul E. Murphy <murphyp@linux.vnet.ibm.com>
Date: Fri Jul 15 18:04:40 2016 -0500
powerpc64le: Create divergent sysdep directory for powerpc64le.
allowed float128 to be enabled for powerpc64le (little-endian) and not
for powerpc64 (big-endian). Since the only intended difference between
them was the presence or absence of the float128 interface, the sysdeps
directory for powerpc64le explicitly reused the files from powerpc64
(through the use of Implies files).
Although this works, it also means that files under the powerpc64
directory might be preferred over files under powerpc64le. For
instance, on a build for powerpc64le with target set to power9, a file
from powerpc64/power5 might get built, even though a file with the same
name exists in powerpc64le/power8. That happens because the processor
hierarchy was only defined in the sysdeps directory for powerpc64 (and
borrowed by powerpc64le).
This patch fixes this behavior, by creating new subdirectories under
powerpc64 (i.e.: powerpc64/be and powerpc64/le) and creating new Implies
files to provide the hierarchy of processors for powerpc64 and
powerpc64le separately. These changes have no effect on installed,
stripped binaries (which remain unchanged).
Tested that installed stripped binaries are unchanged and that there are
no regressions on powerpc64 and powerpc64le.
22 lines
548 B
Plaintext
22 lines
548 B
Plaintext
# preconfigure fragment for powerpc.
|
|
|
|
case "$machine" in
|
|
powerpc64le)
|
|
base_machine=powerpc machine=powerpc/powerpc64/le
|
|
;;
|
|
powerpc64*)
|
|
base_machine=powerpc machine=powerpc/powerpc64/be
|
|
;;
|
|
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
|
|
with_fp_cond="!defined __NO_FPRS__"
|
|
;;
|
|
esac
|