public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Make __nldbl__IO_vfscanf a compat symbol [BZ #31776]
@ 2024-05-24 18:30 H.J. Lu
  2024-05-24 18:30 ` [PATCH 1/2] Add scanf/vfscanf/vscanf tests of long double without <stdio.h> H.J. Lu
  2024-05-24 18:30 ` [PATCH 2/2] Make __nldbl__IO_vfscanf a compat symbol [BZ #31776] H.J. Lu
  0 siblings, 2 replies; 3+ messages in thread
From: H.J. Lu @ 2024-05-24 18:30 UTC (permalink / raw)
  To: libc-alpha; +Cc: fweimer

__nldbl__IO_vfscanf is only needed in libnldbl_nonshared.a to define
_IO_vfscanf.  But _IO_vfscanfis a compat symbol and shouldn't be in
libnldbl_nonshared.a.  We can make __nldbl__IO_vfscanf a compat symbol
by

1. Remove _IO_vfscanf from libnldbl_nonshared.a.
2. Change libnldbl_nonshared.a to call __nldbl_vfscanf, instead of
__nldbl__IO_vfscanf.

H.J. Lu (2):
  Add scanf/vfscanf/vscanf tests of long double without <stdio.h>
  Make __nldbl__IO_vfscanf a compat symbol [BZ #31776]

 stdio-common/test-fscanf.c                    | 55 ++++++++++++++++++-
 stdio-common/test-fscanf.input                |  3 +
 sysdeps/ieee754/ldbl-opt/Makefile             | 12 +++-
 sysdeps/ieee754/ldbl-opt/nldbl-compat.c       |  5 ++
 sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c       |  2 +-
 sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c    | 13 -----
 sysdeps/ieee754/ldbl-opt/nldbl-scanf.c        |  2 +-
 sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c      |  2 +-
 sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c       |  2 +-
 .../test-nldbl-fscanf-redirect-static.c       |  1 +
 .../test-nldbl-fscanf-redirect-static.input   |  4 ++
 .../ldbl-opt/test-nldbl-fscanf-redirect.c     | 21 +++++++
 .../ldbl-opt/test-nldbl-fscanf-redirect.input |  4 ++
 13 files changed, 106 insertions(+), 20 deletions(-)
 delete mode 100644 sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
 create mode 100644 sysdeps/ieee754/ldbl-opt/test-nldbl-fscanf-redirect-static.c
 create mode 100644 sysdeps/ieee754/ldbl-opt/test-nldbl-fscanf-redirect-static.input
 create mode 100644 sysdeps/ieee754/ldbl-opt/test-nldbl-fscanf-redirect.c
 create mode 100644 sysdeps/ieee754/ldbl-opt/test-nldbl-fscanf-redirect.input

-- 
2.45.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-24 18:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-24 18:30 [PATCH 0/2] Make __nldbl__IO_vfscanf a compat symbol [BZ #31776] H.J. Lu
2024-05-24 18:30 ` [PATCH 1/2] Add scanf/vfscanf/vscanf tests of long double without <stdio.h> H.J. Lu
2024-05-24 18:30 ` [PATCH 2/2] Make __nldbl__IO_vfscanf a compat symbol [BZ #31776] H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).