diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2018-08-08 17:26:22 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2019-03-01 15:26:36 -0300 |
commit | d11086a9391b6066458947b80c0d0059b6b461d8 (patch) | |
tree | 91d537afc5f7a3c50c2b0002ec626de9353abc69 /ChangeLog | |
parent | 90188e7d1adc5d8743d7933c9ed1bf95f91dda62 (diff) | |
download | glibc-d11086a9391b6066458947b80c0d0059b6b461d8.zip glibc-d11086a9391b6066458947b80c0d0059b6b461d8.tar.gz glibc-d11086a9391b6066458947b80c0d0059b6b461d8.tar.bz2 |
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -1,6 +1,35 @@ 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br> [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 <gabriel@inconstante.eti.br> + + [BZ #23984] * include/bits/err-ldbl.h: New file. * include/err.h: Add prototypes for the internal functions: __vwarnx_internal and __vwarn_internal. |