]> git.ipfire.org Git - thirdparty/glibc.git/commit
ldbl-opt: Add error and error_at_line (bug 23984)
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>
Wed, 8 Aug 2018 20:26:22 +0000 (17:26 -0300)
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>
Fri, 1 Mar 2019 18:26:36 +0000 (15:26 -0300)
commitd11086a9391b6066458947b80c0d0059b6b461d8
tree91d537afc5f7a3c50c2b0002ec626de9353abc69
parent90188e7d1adc5d8743d7933c9ed1bf95f91dda62
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.
17 files changed:
ChangeLog
include/bits/error-ldbl.h [new file with mode: 0644]
include/error.h
misc/Makefile
misc/bits/error-ldbl.h [new file with mode: 0644]
misc/error.h
sysdeps/ieee754/ldbl-opt/Versions
sysdeps/ieee754/ldbl-opt/nldbl-compat.c
sysdeps/ieee754/ldbl-opt/nldbl-compat.h
sysdeps/unix/sysv/linux/alpha/libc.abilist
sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist