ldbl-128ibm-compat: Compiler flags for stdio functions
authorTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Mon, 30 Jul 2018 15:04:40 +0000 (12:04 -0300)
committerGabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Fri, 27 Dec 2019 18:02:10 +0000 (15:02 -0300)
Some of the files that provide stdio.h and wchar.h functions have a
filename prefixed with 'io', such as 'iovsprintf.c'.  On platforms that
imply ldbl-128ibm-compat, these files must be compiled with the flag
-mabi=ibmlongdouble.  This patch adds this flag to their compilation.

Notice that this is not required for the other files that provide
similar functions, because filenames that are not prefixed with 'io'
have ldbl-128ibm-compat counterparts in the Makefile, which already adds
-mabi=ibmlongdouble to them.

Reviewed-by: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
sysdeps/ieee754/ldbl-128ibm-compat/Makefile

index 49d9af9fea802a1aacae1fb5d34ad784164ae177..8f6a09091a121c21cc5ec5f86ab8cc60d1c07b8b 100644 (file)
@@ -325,6 +325,12 @@ routines += $(foreach r,$(ldbl-extra-routines),ieee128-$(r))
 # always be built in IBM long double mode, with additional support for
 # IEEE binary128, through the use of -mabi=ibmlongdouble and -mfloat128.
 ldbl-ibm128-files := $(objpfx)test-%-ibm128^ \
+                    $(objpfx)iovdprintf^ \
+                    $(objpfx)iovsprintf^ \
+                    $(objpfx)iovsscanf^ \
+                    $(objpfx)iovswscanf^ \
+                    $(objpfx)iovfscanf^ \
+                    $(objpfx)iovfwscanf^ \
                     $(foreach r,$(ldbl-extra-routines),$(objpfx)$(r)^) \
                     $(foreach r,$(ldbl-extra-routines),$(objpfx)$(r)-internal^)
 obj-suf-foreach = $(foreach suf,$(all-object-suffixes),$(subst ^,$(suf),$(1)))