1 # When building float128 we need to ensure -mfloat128 is
2 # passed to all such object files.
5 # sqrtf128 requires emulation before POWER9.
6 CPPFLAGS
+= -I..
/soft-fp
8 # float128 requires adding a handful of extra flags.
9 $(foreach suf
,$(all-object-suffixes
),%f128
$(suf
)): CFLAGS
+= -mfloat128
10 $(foreach suf
,$(all-object-suffixes
),%f128_r
$(suf
)): CFLAGS
+= -mfloat128
11 $(foreach suf
,$(all-object-suffixes
),$(objpfx
)test-float128
%$(suf
)): CFLAGS
+= -mfloat128
12 $(foreach suf
,$(all-object-suffixes
),$(objpfx
)test-ifloat128
%$(suf
)): CFLAGS
+= -mfloat128
13 CFLAGS-libm-test-support-float128.c
+= -mfloat128
16 # Append flags to string <-> _Float128 routines.
17 ifneq ($(filter $(subdir
),wcsmbs stdlib
),)
18 $(foreach suf
,$(all-object-suffixes
),%f128
$(suf
)): CFLAGS
+= -mfloat128
19 $(foreach suf
,$(all-object-suffixes
),%f128_l
$(suf
)): CFLAGS
+= -mfloat128
20 $(foreach suf
,$(all-object-suffixes
),%f128_nan
$(suf
)): CFLAGS
+= -mfloat128
21 $(foreach suf
,$(all-object-suffixes
),%float1282mpn
$(suf
)): CFLAGS
+= -mfloat128
22 $(foreach suf
,$(all-object-suffixes
),%mpn2float128
$(suf
)): CFLAGS
+= -mfloat128
23 CFLAGS-bug-strtod.c
+= -mfloat128
24 CFLAGS-bug-strtod2.c
+= -mfloat128
25 CFLAGS-tst-strtod-round.c
+= -mfloat128
26 CFLAGS-tst-wcstod-round.c
+= -mfloat128
27 CFLAGS-tst-strtod6.c
+= -mfloat128
28 CFLAGS-tst-strfrom.c
+= -mfloat128
29 CFLAGS-tst-strfrom-locale.c
+= -mfloat128
30 CFLAGS-strfrom-skeleton.c
+= -mfloat128
32 # When building glibc with support for _Float128, the powers of ten tables in
33 # fpioconst.c and in the string conversion functions must be extended. Some
34 # Makefiles (e.g.: wcsmbs/Makefile) override CFLAGS defined by the Makefiles in
35 # sysdeps. This is avoided with the use sysdep-CFLAGS instead of CFLAGS.
36 sysdep-CFLAGS
+= $(sysdep-CFLAGS-
$(<F
))
37 sysdep-CFLAGS-fpioconst.c
+= -mfloat128
38 sysdep-CFLAGS-strtod_l.c
+= -mfloat128
39 sysdep-CFLAGS-strtof_l.c
+= -mfloat128
40 sysdep-CFLAGS-strtold_l.c
+= -mfloat128
41 sysdep-CFLAGS-wcstod_l.c
+= -mfloat128
42 sysdep-CFLAGS-wcstof_l.c
+= -mfloat128
43 sysdep-CFLAGS-wcstold_l.c
+= -mfloat128
46 # Append flags to printf routines.
47 ifeq ($(subdir
),stdio-common
)
48 CFLAGS-printf_fp.c
= -mfloat128
49 CFLAGS-printf_fphex.c
= -mfloat128
50 CFLAGS-printf_size.c
= -mfloat128