2 ldbl-extra-routines
+= fwscanf \
9 ifeq ($(subdir
),wcsmbs
)
10 ldbl-extra-routines
+= isoc99_fwscanf \
17 tests-internal
+= test-wcstold-ibm128 test-wcstold-ieee128
18 CFLAGS-test-wcstold-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
19 CFLAGS-test-wcstold-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
21 $(objpfx
)test-wcstold-ieee128
: gnulib-tests
+= $(f128-loader-link
)
24 ifeq ($(subdir
),stdio-common
)
25 ldbl-extra-routines
+= printf_size \
61 # Printing long double values with IEEE binary128 format reuses part
62 # of the internal float128 implementation (__printf_fp, __printf_fphex,
63 # and __float128 variables and union members). Likewise, reading these
64 # values reuses __strtof128_internal. Thus, the compilation of the
65 # following functions, must have -mfloat128 and -mabi=ibmlongdouble
66 # passed to the compiler.
67 CFLAGS-vfprintf-internal.c
+= -mfloat128
-mabi
=ibmlongdouble
68 CFLAGS-vfwprintf-internal.c
+= -mfloat128
-mabi
=ibmlongdouble
69 CFLAGS-vfscanf-internal.c
+= -mfloat128
-mabi
=ibmlongdouble
70 CFLAGS-vfwscanf-internal.c
+= -mfloat128
-mabi
=ibmlongdouble
72 # Basic tests for the implementation of long double with IEEE binary128
73 # format and for the related redirections in installed headers.
74 tests-internal
+= test-printf-ieee128 test-printf-ibm128
75 CFLAGS-test-printf-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
76 CFLAGS-test-printf-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
78 tests-internal
+= test-wprintf-ieee128 test-wprintf-ibm128
79 CFLAGS-test-wprintf-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
80 CFLAGS-test-wprintf-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
82 tests-internal
+= test-obstack-ieee128 test-obstack-ibm128
83 CFLAGS-test-obstack-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
84 CFLAGS-test-obstack-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
86 tests-internal
+= test-obstack-chk-ieee128 test-obstack-chk-ibm128
87 CFLAGS-test-obstack-chk-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
88 CFLAGS-test-obstack-chk-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
90 tests-internal
+= test-scanf-ieee128 test-scanf-ibm128
91 CFLAGS-test-scanf-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
-std
=c89
-D_GNU_SOURCE
92 CFLAGS-test-scanf-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
-std
=c89
-D_GNU_SOURCE
94 $(objpfx
)test-scanf-ieee128
: gnulib-tests
+= $(f128-loader-link
)
96 tests-internal
+= test-wscanf-ieee128 test-wscanf-ibm128
97 CFLAGS-test-wscanf-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
-std
=c89
-D_GNU_SOURCE
98 CFLAGS-test-wscanf-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
-std
=c89
-D_GNU_SOURCE
100 $(objpfx
)test-wscanf-ieee128
: gnulib-tests
+= $(f128-loader-link
)
102 tests-internal
+= test-isoc99-scanf-ieee128 test-isoc99-scanf-ibm128
103 CFLAGS-test-isoc99-scanf-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
-std
=c99
104 CFLAGS-test-isoc99-scanf-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
-std
=c99
106 $(objpfx
)test-isoc99-scanf-ieee128
: gnulib-tests
+= $(f128-loader-link
)
108 tests-internal
+= test-isoc99-wscanf-ieee128 test-isoc99-wscanf-ibm128
109 CFLAGS-test-isoc99-wscanf-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
-std
=c99
110 CFLAGS-test-isoc99-wscanf-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
-std
=c99
112 $(objpfx
)test-isoc99-wscanf-ieee128
: gnulib-tests
+= $(f128-loader-link
)
114 ifeq ($(run-built-tests
),yes
)
115 tests-special
+= $(objpfx
)test-scanf-ieee128.out
116 tests-special
+= $(objpfx
)test-scanf-ibm128.out
118 tests-special
+= $(objpfx
)test-wscanf-ieee128.out
119 tests-special
+= $(objpfx
)test-wscanf-ibm128.out
121 tests-special
+= $(objpfx
)test-isoc99-scanf-ieee128.out
122 tests-special
+= $(objpfx
)test-isoc99-scanf-ibm128.out
124 tests-special
+= $(objpfx
)test-isoc99-wscanf-ieee128.out
125 tests-special
+= $(objpfx
)test-isoc99-wscanf-ibm128.out
128 $(objpfx
)test-scanf-ieee128.out
: \
129 ..
/sysdeps
/ieee754
/ldbl-128ibm-compat
/test-scanf-ldbl-compat.sh \
130 $(objpfx
)test-scanf-ieee128
131 $(SHELL
) $^
'$(test-program-prefix)' $@
; \
134 $(objpfx
)test-scanf-ibm128.out
: \
135 ..
/sysdeps
/ieee754
/ldbl-128ibm-compat
/test-scanf-ldbl-compat.sh \
136 $(objpfx
)test-scanf-ibm128
137 $(SHELL
) $^
'$(test-program-prefix)' $@
; \
140 $(objpfx
)test-wscanf-ieee128.out
: \
141 ..
/sysdeps
/ieee754
/ldbl-128ibm-compat
/test-scanf-ldbl-compat.sh \
142 $(objpfx
)test-wscanf-ieee128
143 $(SHELL
) $^
'$(test-program-prefix)' $@
; \
146 $(objpfx
)test-wscanf-ibm128.out
: \
147 ..
/sysdeps
/ieee754
/ldbl-128ibm-compat
/test-scanf-ldbl-compat.sh \
148 $(objpfx
)test-wscanf-ibm128
149 $(SHELL
) $^
'$(test-program-prefix)' $@
; \
152 $(objpfx
)test-isoc99-scanf-ieee128.out
: \
153 ..
/sysdeps
/ieee754
/ldbl-128ibm-compat
/test-scanf-ldbl-compat.sh \
154 $(objpfx
)test-isoc99-scanf-ieee128
155 $(SHELL
) $^
'$(test-program-prefix)' $@
; \
158 $(objpfx
)test-isoc99-scanf-ibm128.out
: \
159 ..
/sysdeps
/ieee754
/ldbl-128ibm-compat
/test-scanf-ldbl-compat.sh \
160 $(objpfx
)test-isoc99-scanf-ibm128
161 $(SHELL
) $^
'$(test-program-prefix)' $@
; \
164 $(objpfx
)test-isoc99-wscanf-ieee128.out
: \
165 ..
/sysdeps
/ieee754
/ldbl-128ibm-compat
/test-scanf-ldbl-compat.sh \
166 $(objpfx
)test-isoc99-wscanf-ieee128
167 $(SHELL
) $^
'$(test-program-prefix)' $@
; \
170 $(objpfx
)test-isoc99-wscanf-ibm128.out
: \
171 ..
/sysdeps
/ieee754
/ldbl-128ibm-compat
/test-scanf-ldbl-compat.sh \
172 $(objpfx
)test-isoc99-wscanf-ibm128
173 $(SHELL
) $^
'$(test-program-prefix)' $@
; \
176 tests-internal
+= test-printf-size-ieee128 test-printf-size-ibm128
177 CFLAGS-test-printf-size-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
178 CFLAGS-test-printf-size-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
180 ifeq ($(run-built-tests
),yes
)
181 tests-special
+= $(objpfx
)test-printf-size-ieee128.out
182 tests-special
+= $(objpfx
)test-printf-size-ibm128.out
185 $(objpfx
)test-printf-size-ieee128.out
: \
186 tst-printfsz-islongdouble.sh
$(objpfx
)test-printf-size-ieee128
187 $(SHELL
) $^
'$(test-program-prefix)' $@
; \
190 $(objpfx
)test-printf-size-ibm128.out
: \
191 tst-printfsz-islongdouble.sh
$(objpfx
)test-printf-size-ibm128
192 $(SHELL
) $^
'$(test-program-prefix)' $@
; \
196 ifeq ($(subdir
),debug
)
197 ldbl-extra-routines
+= asprintf_chk \
216 tests-internal
+= test-printf-chk-ieee128 test-printf-chk-ibm128
217 CFLAGS-test-printf-chk-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
218 CFLAGS-test-printf-chk-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
220 tests-internal
+= test-printf-chk-redir-ieee128 test-printf-chk-redir-ibm128
221 CFLAGS-test-printf-chk-redir-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble \
222 -Wno-psabi
-Wno-unused-result
223 CFLAGS-test-printf-chk-redir-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi \
226 tests-internal
+= test-wprintf-chk-ieee128 test-wprintf-chk-ibm128
227 CFLAGS-test-wprintf-chk-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
228 CFLAGS-test-wprintf-chk-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
230 tests-internal
+= test-wprintf-chk-redir-ieee128 test-wprintf-chk-redir-ibm128
231 CFLAGS-test-wprintf-chk-redir-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble \
232 -Wno-psabi
-Wno-unused-result
233 CFLAGS-test-wprintf-chk-redir-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi \
237 ifeq ($(subdir
),argp
)
238 ldbl-extra-routines
+= argp-help
240 $(objpfx
)tst-ieee128-argp.c
: tst-ldbl-argp.c
243 $(objpfx
)tst-ibm128-argp.c
: tst-ldbl-argp.c
246 tests-internal
+= tst-ieee128-argp tst-ibm128-argp
247 CFLAGS-tst-ieee128-argp.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
248 CFLAGS-tst-ibm128-argp.c
+= -mabi
=ibmlongdouble
-Wno-psabi
251 ifeq ($(subdir
),misc
)
252 ldbl-extra-routines
+= err \
258 CFLAGS-ieee128-qefgcvt.c
+= -mabi
=ieeelongdouble
-Wno-psabi
-mno-gnu-attribute
259 CFLAGS-ieee128-qefgcvt_r.c
+= -mabi
=ieeelongdouble
-Wno-psabi
-mno-gnu-attribute
261 tests-internal
+= tst-ibm128-warn tst-ieee128-warn
262 tests-internal
+= tst-ibm128-error tst-ieee128-error
263 tests-internal
+= tst-ibm128-efgcvt tst-ieee128-efgcvt
265 $(objpfx
)tst-ieee128-efgcvt
: gnulib-tests
+= $(f128-loader-link
)
267 $(objpfx
)tst-ibm128-
%.c
: tst-ldbl-
%.c
270 $(objpfx
)tst-ieee128-
%.c
: tst-ldbl-
%.c
273 CFLAGS-tst-ibm128-warn.c
+= -mabi
=ibmlongdouble
-Wno-psabi
274 CFLAGS-tst-ibm128-error.c
+= -mabi
=ibmlongdouble
-Wno-psabi
275 CFLAGS-tst-ibm128-efgcvt.c
+= -mabi
=ibmlongdouble
-Wno-psabi
277 CFLAGS-tst-ieee128-warn.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
278 CFLAGS-tst-ieee128-error.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
279 CFLAGS-tst-ieee128-efgcvt.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
281 tests-container
+= test-syslog-ieee128 test-syslog-ibm128
282 CFLAGS-test-syslog-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
283 CFLAGS-test-syslog-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
285 tests-container
+= test-syslog-chk-ieee128 test-syslog-chk-ibm128
286 CFLAGS-test-syslog-chk-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
287 CFLAGS-test-syslog-chk-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
290 ifeq ($(subdir
),stdlib
)
291 ldbl-extra-routines
+= strfmon strfmon_l
293 # Printing long double values with IEEE binary128 format reuses part
294 # of the internal float128 implementation (__printf_fp, __printf_fphex,
295 # and __float128 variables and union members). Thus, the compilation of
296 # the following files, must have -mfloat128 passed to the compiler.
297 # Also, guarantee that they are compiled in IBM long double mode.
298 CFLAGS-strfmon.c
+= -mfloat128
-mabi
=ibmlongdouble
299 CFLAGS-strfmon_l.c
+= -mfloat128
-mabi
=ibmlongdouble
301 tests-internal
+= test-strfmon-ibm128 test-strfmon-ieee128
302 CFLAGS-test-strfmon-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
303 CFLAGS-test-strfmon-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
304 $(objpfx
)tst-strfmon-ibm128.out
: $(gen-locales
)
305 $(objpfx
)tst-strfmon-ieee128.out
: $(gen-locales
)
307 tests-internal
+= test-strfrom-ibm128 test-strfrom-ieee128
308 CFLAGS-test-strfrom-ieee128.c
+= -mfloat128
-mabi
=ieeelongdouble
-Wno-psabi
309 CFLAGS-test-strfrom-ibm128.c
+= -mabi
=ibmlongdouble
-Wno-psabi
311 $(objpfx
)test-strfrom-ieee128
: gnulib-tests
+= $(f128-loader-link
)
314 # Add IEEE binary128 files as make targets.
315 routines
+= $(foreach r
,$(ldbl-extra-routines
),ieee128-
$(r
))
317 # On powerpc64le, the routines responsible for converting between long
318 # double and string (e.g.: printf, scanf, strtold, strfroml) default to
319 # IBM long double mode. When support for TS 18661-3 was added, several
320 # internal functions were modified so that they could also handle
321 # floating-point variables with IEEE binary128 format, but as an
322 # additional type, _Float128.
324 # The following rule ensures that the string conversion routines will
325 # always be built in IBM long double mode, with additional support for
326 # IEEE binary128, through the use of -mabi=ibmlongdouble and -mfloat128.
327 ldbl-ibm128-files
:= $(objpfx
)test-
%-ibm128^ \
328 $(objpfx
)iovdprintf^ \
329 $(objpfx
)iovsprintf^ \
330 $(objpfx
)iovsscanf^ \
331 $(objpfx
)iovswscanf^ \
332 $(objpfx
)iovfscanf^ \
333 $(objpfx
)iovfwscanf^ \
334 $(foreach r
,$(ldbl-extra-routines
),$(objpfx
)$(r
)^
) \
335 $(foreach r
,$(ldbl-extra-routines
),$(objpfx
)$(r
)-internal^
)
336 obj-suf-foreach
= $(foreach suf
,$(all-object-suffixes
),$(subst ^
,$(suf
),$(1)))
337 $(call obj-suf-foreach
,$(ldbl-ibm128-files
)): \
338 sysdep-CFLAGS
+= -mabi
=ibmlongdouble