about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>2017-06-22 15:47:16 -0300
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>2017-06-23 10:31:49 -0300
commit7fa1d9462baabc5a1058efc13a48444af4678acf (patch)
tree2502c2c01b573d7fedcb6ba6cf6abfa7032764bb
parent18a336772d8920780a0e5a60c363fb2d4bf4e81e (diff)
downloadglibc-7fa1d9462baabc5a1058efc13a48444af4678acf.tar.gz
glibc-7fa1d9462baabc5a1058efc13a48444af4678acf.tar.xz
glibc-7fa1d9462baabc5a1058efc13a48444af4678acf.zip
Add libio-mtsafe flags to the build of strfromf128
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.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/ieee754/float128/Makefile4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f63f01739e..4f1ef82c51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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):
 	Enable generation of float128 entries on the error table.
 
diff --git a/sysdeps/ieee754/float128/Makefile b/sysdeps/ieee754/float128/Makefile
index 166e630290..571a841809 100644
--- a/sysdeps/ieee754/float128/Makefile
+++ b/sysdeps/ieee754/float128/Makefile
@@ -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)