public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
@ 2022-06-09 13:13 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 13:13 UTC (permalink / raw)
  To: glibc-cvs

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

commit 89e448913dbfa7654b6368fd2ed0115599b76dda
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 79a0ae39c7..15f13f90ac 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


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

* [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
@ 2022-06-09 21:16 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 21:16 UTC (permalink / raw)
  To: glibc-cvs

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

commit 89e448913dbfa7654b6368fd2ed0115599b76dda
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 79a0ae39c7..15f13f90ac 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


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

* [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
@ 2022-06-03 14:02 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-06-03 14:02 UTC (permalink / raw)
  To: glibc-cvs

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

commit 071a76b27ce0b19af91a0e08c00594b1739c35ae
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 79a0ae39c7..15f13f90ac 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


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

* [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
@ 2022-05-13 14:16 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-05-13 14:16 UTC (permalink / raw)
  To: glibc-cvs

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

commit 882f529b05ffa9676d897660ac28d9905c63b767
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 419a09a3a7..34652ca342 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


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

* [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
@ 2022-05-12 19:30 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-05-12 19:30 UTC (permalink / raw)
  To: glibc-cvs

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

commit 0d4f2dcd349ccf4d979c446098ac2d54fc5ea592
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 419a09a3a7..34652ca342 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


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

* [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
@ 2022-05-10 18:20 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-05-10 18:20 UTC (permalink / raw)
  To: glibc-cvs

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

commit 1d92ff345c53608c92002ef1933512e88bf9f971
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 419a09a3a7..34652ca342 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


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

* [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
@ 2022-04-29 14:00 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-04-29 14:00 UTC (permalink / raw)
  To: glibc-cvs

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

commit ab9f6bda8dec2ac900b64232358c3c087eae39d3
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 419a09a3a7..34652ca342 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


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

* [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
@ 2022-04-04 12:51 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-04-04 12:51 UTC (permalink / raw)
  To: glibc-cvs

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

commit 52ebeaacc0807376e5e39c1e2fd7ec72a2377bc2
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


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

* [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
@ 2022-03-31 19:03 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-31 19:03 UTC (permalink / raw)
  To: glibc-cvs

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

commit 4670cfb9a61d25a1dccaa99a128060b65e4a293f
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


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

* [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
@ 2022-03-29 20:26 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-29 20:26 UTC (permalink / raw)
  To: glibc-cvs

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


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

* [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
@ 2022-03-16 17:58 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-16 17:58 UTC (permalink / raw)
  To: glibc-cvs

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

commit 63bb6dc7872ac24f879b5d13057892f75ef31821
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


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

* [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
@ 2022-03-15 18:35 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-15 18:35 UTC (permalink / raw)
  To: glibc-cvs

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

commit 63bb6dc7872ac24f879b5d13057892f75ef31821
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


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

* [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
@ 2022-03-11 17:20 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-11 17:20 UTC (permalink / raw)
  To: glibc-cvs

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

commit 9ff5f8ce5fc8ed8c08403a14fe2b13a69c967006
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


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

* [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf
@ 2022-03-08 18:56 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-08 18:56 UTC (permalink / raw)
  To: glibc-cvs

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

commit 1f19762da6385eedc778f60cbf7a7b294defab52
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


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

end of thread, other threads:[~2022-06-09 21:16 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09 13:13 [glibc/azanella/clang] Use __REDIRECT_LDBL_COMPAT for _IO_vfscanf Adhemerval Zanella
  -- strict thread matches above, loose matches on Subject: below --
2022-06-09 21:16 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-29 20:26 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

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).