From d11086a9391b6066458947b80c0d0059b6b461d8 Mon Sep 17 00:00:00 2001 From: "Gabriel F. T. Gomes" Date: Wed, 8 Aug 2018 17:26:22 -0300 Subject: ldbl-opt: Add error and error_at_line (bug 23984) On platforms where long double may have the same format as double (-mlong-double-64), error and error_at_line do not take that into account and might produce wrong output if a long double conversion is requested by the format string ('%Lf'). This patch adds compatibility functions for this situation and redirects calls via header magic. Tested for powerpc, powerpc64 and powerpc64le. --- ChangeLog | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 37183907e7..886af2b2ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,32 @@ +2019-03-01 Gabriel F. T. Gomes + + [BZ #23984] + * include/bits/error-ldbl.h: New file. + * include/error.h: Include stdarg.h. Declare internal functions + __error_internal and __error_at_line_internal. + * misc/Makefile (headers): Add bits/error-ldbl.h. + * misc/bits/error-ldbl.h: New file. + * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and + avoid the inclusion of bits/error.h. + * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error, + and __nldbl_error_at_line. + * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h. + (__nldbl_error, __ndlbl_error_at_line): New functions. + * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h. + Redirect error and error_at_line. + * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: + Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: + Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: + Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: + Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise. + 2019-03-01 Gabriel F. T. Gomes [BZ #23984] -- cgit v1.2.3-70-g09d2