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:

> +# 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
> +CFLAGS-bug-strtod.c += -mfloat128
> +CFLAGS-bug-strtod2.c += -mfloat128
> +CFLAGS-tst-strtod-round.c += -mfloat128
> +CFLAGS-tst-wcstod-round.c += -mfloat128
> +CFLAGS-tst-strtod6.c += -mfloat128
> +CFLAGS-tst-strfrom.c += -mfloat128
> +CFLAGS-tst-strfrom-locale.c += -mfloat128
> +CFLAGS-strfrom-skeleton.c += -mfloat128
> +
> +# When building glibc with support for _Float128, the powers of ten tables in
> +# fpioconst.c and in the string conversion functions must be extended.
> +sysdep-CFLAGS += $(sysdep-CFLAGS-$(<F))
> +sysdep-CFLAGS-fpioconst.c += -mfloat128
> +sysdep-CFLAGS-strtod_l.c += -mfloat128
> +sysdep-CFLAGS-strtof_l.c += -mfloat128
> +sysdep-CFLAGS-strtold_l.c += -mfloat128
> +sysdep-CFLAGS-wcstod_l.c += -mfloat128
> +sysdep-CFLAGS-wcstof_l.c += -mfloat128
> +sysdep-CFLAGS-wcstold_l.c += -mfloat128

Why sysdep-CFLAGS-* and not CFLAGS-*?

Wouldn't it make sense to always pass -mfloat128?

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]