diff options
author | Gabriel F. T. Gomes <gabrielftg@linux.ibm.com> | 2019-07-11 11:47:47 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabrielftg@linux.ibm.com> | 2019-11-27 15:52:41 -0300 |
commit | 590ef889bc7afe42d4feec94e1c4fbd4ddd65226 (patch) | |
tree | 73fa4b5f39f63a91c8232df0789b36716fffc075 /sysdeps/ieee754/ldbl-128ibm-compat/Makefile | |
parent | ff3cb5accb80471df69fac2c0dded9cab794220a (diff) | |
download | glibc-590ef889bc7afe42d4feec94e1c4fbd4ddd65226.tar.gz |
ldbl-128ibm-compat: Add obstack printing functions
Similarly to the functions from the *printf family, this patch adds
implementations for __obstack_*printf* functions that set the
'mode_flags' parameter to PRINTF_LDBL_USES_FLOAT128, before making calls
to __vfprintf_internal (indirectly through __obstack_vprintf_internal).
Tested for powerpc64le.
Reviewed-by: Paul E. Murphy <murphyp@linux.ibm.com>
Diffstat (limited to 'sysdeps/ieee754/ldbl-128ibm-compat/Makefile')
-rw-r--r-- | sysdeps/ieee754/ldbl-128ibm-compat/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/Makefile b/sysdeps/ieee754/ldbl-128ibm-compat/Makefile index ed0e2ec098..01a412b136 100644 --- a/sysdeps/ieee754/ldbl-128ibm-compat/Makefile +++ b/sysdeps/ieee754/ldbl-128ibm-compat/Makefile @@ -32,7 +32,10 @@ ldbl-extra-routines += printf_size \ vfscanf \ vscanf \ vsscanf \ - vfwscanf + vfwscanf \ + obprintf \ + obstack_chk \ + vobstack_chk # Printing long double values with IEEE binary128 format reuses part # of the internal float128 implementation (__printf_fp, __printf_fphex, @@ -55,6 +58,14 @@ tests-internal += test-wprintf-ieee128 test-wprintf-ibm128 CFLAGS-test-wprintf-ieee128.c += -mfloat128 -mabi=ieeelongdouble -Wno-psabi CFLAGS-test-wprintf-ibm128.c += -mabi=ibmlongdouble -Wno-psabi +tests-internal += test-obstack-ieee128 test-obstack-ibm128 +CFLAGS-test-obstack-ieee128.c += -mfloat128 -mabi=ieeelongdouble -Wno-psabi +CFLAGS-test-obstack-ibm128.c += -mabi=ibmlongdouble -Wno-psabi + +tests-internal += test-obstack-chk-ieee128 test-obstack-chk-ibm128 +CFLAGS-test-obstack-chk-ieee128.c += -mfloat128 -mabi=ieeelongdouble -Wno-psabi +CFLAGS-test-obstack-chk-ibm128.c += -mabi=ibmlongdouble -Wno-psabi + tests-internal += test-scanf-ieee128 test-scanf-ibm128 CFLAGS-test-scanf-ieee128.c += -mfloat128 -mabi=ieeelongdouble -Wno-psabi CFLAGS-test-scanf-ibm128.c += -mabi=ibmlongdouble -Wno-psabi |