public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
Date: Tue, 29 Mar 2022 20:26:26 +0000 (GMT)	[thread overview]
Message-ID: <20220329202626.804D7388458B@sourceware.org> (raw)

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

commit 9950c619de9ef7d974e3d8a9855c36ab8dc25a7c
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Feb 28 11:06:00 2022 -0300

    Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
    
    The macro redirects for __nldbl__IO_vfscanf only when required
    and it removes a __LDBL_REDIR_DECL usage.

Diff:
---
 libio/libio.h    | 4 +++-
 misc/sys/cdefs.h | 5 +++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/libio/libio.h b/libio/libio.h
index d0184df878..b0c1c8c3a8 100644
--- a/libio/libio.h
+++ b/libio/libio.h
@@ -257,7 +257,9 @@ extern __ssize_t _IO_wpadn (FILE *, wint_t, __ssize_t);
 extern void _IO_free_wbackup_area (FILE *) __THROW;
 
 #ifdef __LDBL_COMPAT
-__LDBL_REDIR_DECL (_IO_vfscanf)
+extern int __REDIRECT_LDBL_COMPAT (_IO_vfscanf, (FILE * __restrict,
+						 const char * __restrict,
+						 __gnuc_va_list, int *__restrict));
 #endif
 
 libc_hidden_proto (__overflow)
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index d8069a7590..1beda4fc67 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -595,6 +595,8 @@ _Static_assert (0, "IEEE 128-bits long double requires redirection on this platf
 #  ifdef __REDIRECT
 #   define __REDIRECT_LDBL(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, , , proto, compat)
+#   define __REDIRECT_LDBL_COMPAT(name, proto) \
+      __REDIRECT_LDBL1 (name, , , proto, __nldbl_##name)
 #   ifdef __cplusplus
 #    define __REDIRECT_LDBL_NTH(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, __THROW, , proto, compat)
@@ -620,6 +622,9 @@ _Static_assert (0, "Compat long double requires redirection on this platform");
 # define __REDIRECT_LDBL128_NTH(name, proto) name proto __THROW
 # define __REDIRECT_LDBL128_NTHNL(name, proto) name proto __THROWNL
 #endif
+#ifndef __REDIRECT_LDBL_COMPAT
+# define __REDIRECT_LDBL_COMPAT(name, proto)
+#endif
 
 #if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
 # ifdef __REDIRECT


             reply	other threads:[~2022-03-29 20:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-29 20:26 Adhemerval Zanella [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-06-09 21:16 Adhemerval Zanella
2022-06-09 13:13 Adhemerval Zanella
2022-06-03 14:02 Adhemerval Zanella
2022-05-13 14:16 Adhemerval Zanella
2022-05-12 19:30 Adhemerval Zanella
2022-05-10 18:20 Adhemerval Zanella
2022-04-29 14:00 Adhemerval Zanella
2022-04-04 12:51 Adhemerval Zanella
2022-03-31 19:03 Adhemerval Zanella
2022-03-16 17:58 Adhemerval Zanella
2022-03-15 18:35 Adhemerval Zanella
2022-03-11 17:20 Adhemerval Zanella
2022-03-08 18:56 Adhemerval Zanella

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220329202626.804D7388458B@sourceware.org \
    --to=azanella@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).