This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3 7/7] powerpc64le: Enable float128


On Jun 23 2017, "Gabriel F. T. Gomes" <gftg@linux.vnet.ibm.com> wrote:

> diff --git a/sysdeps/powerpc/powerpc64le/Makefile b/sysdeps/powerpc/powerpc64le/Makefile
> new file mode 100644
> index 0000000..bd8a82d
> --- /dev/null
> +++ b/sysdeps/powerpc/powerpc64le/Makefile
> @@ -0,0 +1,45 @@
> +# When building float128 we need to ensure -mfloat128 is
> +# passed to all such object files.
> +
> +ifeq ($(subdir),math)
> +# sqrtf128 requires emulation before POWER9.
> +CPPFLAGS += -I../soft-fp
> +
> +# float128 requires adding a handful of extra flags.
> +$(foreach suf,$(all-object-suffixes),%f128$(suf)): CFLAGS += -mfloat128
> +$(foreach suf,$(all-object-suffixes),%f128_r$(suf)): CFLAGS += -mfloat128
> +$(objpfx)test-float128%.o $(objpfx)test-float128%.os: CFLAGS += -mfloat128
> +$(objpfx)test-ifloat128%.o $(objpfx)test-ifloat128%.os: CFLAGS += -mfloat128
> +CFLAGS-libm-test-support-float128.c += -mfloat128
> +endif
> +
> +# Append flags to string <-> _Float128 routines.
> +ifneq ($(filter $(subdir),wcsmbs stdlib),)
> +%f128.o %f128.os %f128_l.o %f128_l.os %f128_nan.o %f128_nan.os %float1282mpn.o %float1282mpn.os %mpn2float128.o %mpn2float128.os: CFLAGS += -mfloat128

You need to iterate over all object suffixes.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]