This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/23984] Missing compat versions of err.h and error.h functions for long double = double


https://sourceware.org/bugzilla/show_bug.cgi?id=23984

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  f0eaf86276547f4f1984469b651b3e9968858b85 (commit)
       via  d11086a9391b6066458947b80c0d0059b6b461d8 (commit)
       via  90188e7d1adc5d8743d7933c9ed1bf95f91dda62 (commit)
       via  ea2d89d01c2be3e87eced8bb51ce5dc66d09ac35 (commit)
       via  6e1f6440b99d74db314a9f1a1b27c050ef62a45c (commit)
      from  c259196b5005812aa3294dbf4eeca29b266a4522 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f0eaf86276547f4f1984469b651b3e9968858b85

commit f0eaf86276547f4f1984469b651b3e9968858b85
Author: Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
Date:   Tue Aug 7 18:06:58 2018 -0300

    ldbl-opt: Reuse test cases from misc/ that check long double

    This patch adds test cases for the compatibility versions of the
    functions: err, errx, verr, verrx, warn, warnx, vwarn, vwarnx (from
    err.h), error, and error_at_line (from error.h), when long double has
    the same format as double (-mlong-double-64).

    Tested for powerpc, powerpc64 and powerpc64le.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d11086a9391b6066458947b80c0d0059b6b461d8

commit d11086a9391b6066458947b80c0d0059b6b461d8
Author: Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
Date:   Wed Aug 8 17:26:22 2018 -0300

    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.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=90188e7d1adc5d8743d7933c9ed1bf95f91dda62

commit 90188e7d1adc5d8743d7933c9ed1bf95f91dda62
Author: Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
Date:   Wed Aug 8 09:58:36 2018 -0300

    ldbl-opt: Add err, errx, verr, verrx, warn, warnx, vwarn, and vwarnx (bug
23984)

    When support for long double format with 128-bits (-mlong-double-128)
    was added for platforms where long double had the same format as double,
    such as powerpc, compatibility versions for the functions listed in the
    commit title were missed.  Since the older format of long double can
    still be used (with -mlong-double-64), using these functions with a
    format string that requests the printing of long double variables will
    produce wrong outputs.

    This patch adds the missing compatibility functions and header magic to
    redirect calls to them when -mlong-double-64 is in use.

    Tested for powerpc, powerpc64 and powerpc64le.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ea2d89d01c2be3e87eced8bb51ce5dc66d09ac35

commit ea2d89d01c2be3e87eced8bb51ce5dc66d09ac35
Author: Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
Date:   Tue Jul 3 10:43:13 2018 -0300

    ldbl-opt: Reuse argp tests that print long double

    The test case tst-ldbl-argp checks that the conversion specifier '%Lf'
    correctly prints long double values with the default long double format
    for a platform.  This patch reuses the test case for long double with
    the same format as double (-mlong-double-64).

    Tested for powerpc, powerpc64 and powerpc64le.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6e1f6440b99d74db314a9f1a1b27c050ef62a45c

commit 6e1f6440b99d74db314a9f1a1b27c050ef62a45c
Author: Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
Date:   Wed Jul 4 11:54:11 2018 -0300

    ldbl-opt: Add argp_error and argp_failure (bug 23983)

    The functions argp_error and argp_failure are missing support for
    printing long double values when long double has the same format as
    double.  This patch adds the new functions __nldbl_argp_error and
    __nldbl_argp_failure, as well as header magic to redirect calls to them
    when -mlong-double-64 is in use.

    Tested for powerpc, powerpc64 and powerpc64le.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                          |  113 ++++++++++++++++++++
 argp/Makefile                                      |    2 +-
 argp/argp.h                                        |    4 +
 argp/bits/argp-ldbl.h                              |   24 ++++
 include/argp.h                                     |   11 ++
 include/bits/argp-ldbl.h                           |    1 +
 include/bits/err-ldbl.h                            |    1 +
 include/bits/error-ldbl.h                          |    1 +
 include/err.h                                      |    9 ++
 include/error.h                                    |   14 +++
 misc/Makefile                                      |    3 +-
 misc/bits/err-ldbl.h                               |   30 +++++
 misc/bits/error-ldbl.h                             |   24 ++++
 misc/err.h                                         |    4 +
 misc/error.h                                       |   12 ++-
 misc/tst-ldbl-error.c                              |   25 +++--
 misc/tst-ldbl-warn.c                               |   20 +++-
 sysdeps/ieee754/ldbl-opt/Makefile                  |   26 +++++
 sysdeps/ieee754/ldbl-opt/Versions                  |    6 +
 sysdeps/ieee754/ldbl-opt/nldbl-compat.c            |  104 ++++++++++++++++++
 sysdeps/ieee754/ldbl-opt/nldbl-compat.h            |   15 +++
 sysdeps/unix/sysv/linux/alpha/libc.abilist         |   12 ++
 .../sysv/linux/powerpc/powerpc32/fpu/libc.abilist  |   12 ++
 .../linux/powerpc/powerpc32/nofpu/libc.abilist     |   12 ++
 .../sysv/linux/powerpc/powerpc64/be/libc.abilist   |   12 ++
 .../sysv/linux/powerpc/powerpc64/le/libc.abilist   |   12 ++
 sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist  |   12 ++
 sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist  |   12 ++
 sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist |   12 ++
 29 files changed, 522 insertions(+), 23 deletions(-)
 create mode 100644 argp/bits/argp-ldbl.h
 create mode 100644 include/bits/argp-ldbl.h
 create mode 100644 include/bits/err-ldbl.h
 create mode 100644 include/bits/error-ldbl.h
 create mode 100644 misc/bits/err-ldbl.h
 create mode 100644 misc/bits/error-ldbl.h

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]