[v3,3/7] Add libio-mtsafe flags to the build of strfromf128

Message ID 1498221206-26864-4-git-send-email-gftg@linux.vnet.ibm.com
State Committed
Delegated to: Joseph Myers
Headers

Commit Message

Gabriel F T Gomes June 23, 2017, 12:33 p.m. UTC
  New since v2:

  - This patch has been split from the last patch in this set, because it
    isn't powerpc64le-specific.

-- 8< --
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.
---
 sysdeps/ieee754/float128/Makefile | 4 ++++
 1 file changed, 4 insertions(+)
  

Comments

Joseph Myers June 23, 2017, 12:59 p.m. UTC | #1
On Fri, 23 Jun 2017, Gabriel F. T. Gomes wrote:

> New since v2:
> 
>   - This patch has been split from the last patch in this set, because it
>     isn't powerpc64le-specific.
> 
> -- 8< --
> 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.

OK.
  

Patch

diff --git a/sysdeps/ieee754/float128/Makefile b/sysdeps/ieee754/float128/Makefile
index 166e630..571a841 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)