musl/arch
Marius Hillenbrand 738c4e945c s390x: derive float_t from compiler or default to float
float_t should represent the type that is used to evaluate float
expressions internally. On s390x, float_t is currently set to double.
In contrast, the isa supports single-precision float operations and
compilers by default evaluate float in single precision, which
violates the C standard (sections 5.2.4.2.2 and 7.12 in C11/C17, to be
precise). With -fexcess-precision=standard, gcc evaluates float in
double precision, which aligns with the standard yet at the cost of
added conversion instructions.

gcc-11 will drop the special case to retrofit double precision
behavior for -fexcess-precision=standard so that __FLT_EVAL_METHOD__
will be 0 on s390x in any scenario.

To improve standards compliance and compatibility with future compiler
direction, this patch changes the definition of float_t to be derived
from the compiler's __FLT_EVAL_METHOD__.
2020-12-03 19:07:24 -05:00
..
aarch64 bits/syscall.h: add __NR_close_range from linux v5.9 2020-11-29 00:54:14 -05:00
arm bits/syscall.h: add __NR_close_range from linux v5.9 2020-11-29 00:54:14 -05:00
generic make generic bits/fcntl.h shareable with 64-bit archs 2020-09-03 17:58:17 -04:00
i386 bits/syscall.h: add __NR_close_range from linux v5.9 2020-11-29 00:54:14 -05:00
m68k bits/syscall.h: add __NR_close_range from linux v5.9 2020-11-29 00:54:14 -05:00
microblaze bits/syscall.h: add __NR_close_range from linux v5.9 2020-11-29 00:54:14 -05:00
mips bits/syscall.h: add __NR_close_range from linux v5.9 2020-11-29 00:54:14 -05:00
mips64 bits/syscall.h: add __NR_close_range from linux v5.9 2020-11-29 00:54:14 -05:00
mipsn32 bits/syscall.h: add __NR_close_range from linux v5.9 2020-11-29 00:54:14 -05:00
or1k bits/syscall.h: add __NR_close_range from linux v5.9 2020-11-29 00:54:14 -05:00
powerpc bits/syscall.h: add __NR_close_range from linux v5.9 2020-11-29 00:54:14 -05:00
powerpc64 bits/syscall.h: add __NR_close_range from linux v5.9 2020-11-29 00:54:14 -05:00
riscv64 bits/syscall.h: add __NR_close_range from linux v5.9 2020-11-29 00:54:14 -05:00
s390x s390x: derive float_t from compiler or default to float 2020-12-03 19:07:24 -05:00
sh bits/syscall.h: add __NR_close_range from linux v5.9 2020-11-29 00:54:14 -05:00
x32 bits/syscall.h: add __NR_close_range from linux v5.9 2020-11-29 00:54:14 -05:00
x86_64 bits/syscall.h: add __NR_close_range from linux v5.9 2020-11-29 00:54:14 -05:00