]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add libio-mtsafe flags to the build of strfromf128
authorGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Thu, 22 Jun 2017 18:47:16 +0000 (15:47 -0300)
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Fri, 23 Jun 2017 13:31:49 +0000 (10:31 -0300)
Similar to the other functions in the strfrom class, strfromf128 calls
__printf_fp in order to convert the floating-point value to characters.
This requires the value of IO_MTSAFE_IO.

Tested for powerpc64le and s390x.

* sysdeps/ieee754/float128/Makefile (CFLAGS-strfromf128.c): Add
$(libio-mtsafe) to get the value of IO_MTSAFE_IO.

ChangeLog
sysdeps/ieee754/float128/Makefile

index f63f01739e4e86b87877faa22ef333531b340f80..4f1ef82c5122c808cfab9fc3b8efb3ac51a6f568 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-06-23  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
+
+       * sysdeps/ieee754/float128/Makefile (CFLAGS-strfromf128.c): Add
+       $(libio-mtsafe) to get the value of IO_MTSAFE_IO.
+
 2017-06-23  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
 
        * manual/libm-err-tab.pl (@all_floats, %suffices, parse_ulps):
index 166e630290306fc9a58100d74a868d6bd328cf70..571a841809234edde5ae255674054d1fbd204dbd 100644 (file)
@@ -1,6 +1,10 @@
 ifeq ($(subdir),stdlib)
 routines += float1282mpn strfromf128
 routines += strtof128 strtof128_l strtof128_nan mpn2float128
+
+# The strfrom class of functions call __printf_fp in order to convert the
+# floating-point value to characters.  This requires the value of IO_MTSAFE_IO.
+CFLAGS-strfromf128.c += $(libio-mtsafe)
 endif
 
 ifeq ($(subdir),wcsmbs)