HomeFreeBSD

Linux ppc64le ieee128 compat: Do not redefine __asm on external headers

Description

Linux ppc64le ieee128 compat: Do not redefine __asm on external headers

There is an external assembly declaration extension in GNU C that glibc
uses when building with ieee128 floating point support on ppc64le.
Marking that as volatile makes no sense, so the build breaks.

It does not make sense to only mark this as volatile on Linux, since if
do not want the compiler reordering things on Linux, we do not want the
compiler reordering things on any other platform, so we stop treating
Linux specially and just manually inline the CPP macro so that we can
eliminate it. This should fix the build on ppc64le.

Tested-by: @gyakovlev
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14308
Closes #14384

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Jan 13 2023, 6:58 PM
Tony Hutter <hutter2@llnl.gov>Committed on Jan 19 2023, 8:50 PM
Parents
rG596cfb6b15e1: include systemd overrides to zfs-dracut module
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG7319a73921ff: Linux ppc64le ieee128 compat: Do not redefine __asm on external headers (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Jan 19 2023, 8:50 PM