public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] Remove __LDBL_REDIR macros
@ 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=1a6451a40b73026d094b8a1e2a331840d0a0d2d2

commit 1a6451a40b73026d094b8a1e2a331840d0a0d2d2
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 3 12:22:34 2022 -0300

    Remove __LDBL_REDIR macros
    
    Since they are not used anymore.

Diff:
---
 include/sys/cdefs.h | 20 --------------------
 misc/sys/cdefs.h    | 45 +--------------------------------------------
 2 files changed, 1 insertion(+), 64 deletions(-)

diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 56adb231aa..7f7aa967fa 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -20,26 +20,6 @@ extern void __chk_fail (void) __attribute__ ((__noreturn__));
 libc_hidden_proto (__chk_fail)
 rtld_hidden_proto (__chk_fail)
 
-/* If we are using redirects internally to support long double,
-   we need to tweak some macros to ensure the PLT bypass tricks
-   continue to work in libc. */
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && IS_IN (libc) && defined SHARED
-
-# undef __LDBL_REDIR_DECL
-# define __LDBL_REDIR_DECL(func) \
-   extern __typeof(func) func __asm (__ASMNAME ("__GI____ieee128_" #func));
-
-# undef libc_hidden_ldbl_proto
-# define libc_hidden_ldbl_proto(func, attrs...) \
-   extern __typeof(func) ___ieee128_ ## func; \
-   libc_hidden_proto (___ieee128_ ## func, ##attrs);
-
-# undef __LDBL_REDIR2_DECL
-# define __LDBL_REDIR2_DECL(func) \
-   extern __typeof(__ ## func) __ ## func __asm (__ASMNAME ("__GI____ieee128___" #func));
-
-#endif
-
 #endif /* !defined _ISOMAC */
 
 #endif
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 1beda4fc67..090aad6fed 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -592,6 +592,7 @@
 _Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
 #  endif /* __REDIRECT */
 # elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
+#  define __LDBL_COMPAT 1
 #  ifdef __REDIRECT
 #   define __REDIRECT_LDBL(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, , , proto, compat)
@@ -626,50 +627,6 @@ _Static_assert (0, "Compat long double requires redirection on this platform");
 # define __REDIRECT_LDBL_COMPAT(name, proto)
 #endif
 
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# ifdef __REDIRECT
-
-/* Alias name defined automatically.  */
-#  define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined automatically, with leading underscores.  */
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name \
-    __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined manually.  */
-#  define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-
-#  define __LDBL_REDIR1_NTH(name, proto, alias) \
-  __REDIRECT_NTH (name, proto, alias)
-#  define __REDIRECT_NTH_LDBL(name, proto, alias) \
-  __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
-
-# else
-_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
-# endif
-#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
-# define __LDBL_COMPAT 1
-# ifdef __REDIRECT
-#  define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
-#  define __LDBL_REDIR(name, proto) \
-  __LDBL_REDIR1 (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
-#  define __LDBL_REDIR_NTH(name, proto) \
-  __LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
-# endif
-#endif
-
 /* __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    intended for use in preprocessor macros.


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

* [glibc/azanella/clang] Remove __LDBL_REDIR macros
@ 2022-06-09 21:17 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 21:17 UTC (permalink / raw)
  To: glibc-cvs

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

commit adc6647d932bfd35b9a87976260c62084976f880
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 3 12:22:34 2022 -0300

    Remove __LDBL_REDIR macros
    
    Since they are not used anymore.

Diff:
---
 include/sys/cdefs.h | 20 --------------------
 misc/sys/cdefs.h    | 45 +--------------------------------------------
 2 files changed, 1 insertion(+), 64 deletions(-)

diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 56adb231aa..7f7aa967fa 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -20,26 +20,6 @@ extern void __chk_fail (void) __attribute__ ((__noreturn__));
 libc_hidden_proto (__chk_fail)
 rtld_hidden_proto (__chk_fail)
 
-/* If we are using redirects internally to support long double,
-   we need to tweak some macros to ensure the PLT bypass tricks
-   continue to work in libc. */
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && IS_IN (libc) && defined SHARED
-
-# undef __LDBL_REDIR_DECL
-# define __LDBL_REDIR_DECL(func) \
-   extern __typeof(func) func __asm (__ASMNAME ("__GI____ieee128_" #func));
-
-# undef libc_hidden_ldbl_proto
-# define libc_hidden_ldbl_proto(func, attrs...) \
-   extern __typeof(func) ___ieee128_ ## func; \
-   libc_hidden_proto (___ieee128_ ## func, ##attrs);
-
-# undef __LDBL_REDIR2_DECL
-# define __LDBL_REDIR2_DECL(func) \
-   extern __typeof(__ ## func) __ ## func __asm (__ASMNAME ("__GI____ieee128___" #func));
-
-#endif
-
 #endif /* !defined _ISOMAC */
 
 #endif
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 15f13f90ac..35a54b694a 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -592,6 +592,7 @@
 _Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
 #  endif /* __REDIRECT */
 # elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
+#  define __LDBL_COMPAT 1
 #  ifdef __REDIRECT
 #   define __REDIRECT_LDBL(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, , , proto, compat)
@@ -626,50 +627,6 @@ _Static_assert (0, "Compat long double requires redirection on this platform");
 # define __REDIRECT_LDBL_COMPAT(name, proto)
 #endif
 
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# ifdef __REDIRECT
-
-/* Alias name defined automatically.  */
-#  define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined automatically, with leading underscores.  */
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name \
-    __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined manually.  */
-#  define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-
-#  define __LDBL_REDIR1_NTH(name, proto, alias) \
-  __REDIRECT_NTH (name, proto, alias)
-#  define __REDIRECT_NTH_LDBL(name, proto, alias) \
-  __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
-
-# else
-_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
-# endif
-#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
-# define __LDBL_COMPAT 1
-# ifdef __REDIRECT
-#  define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
-#  define __LDBL_REDIR(name, proto) \
-  __LDBL_REDIR1 (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
-#  define __LDBL_REDIR_NTH(name, proto) \
-  __LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
-# endif
-#endif
-
 /* __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    intended for use in preprocessor macros.


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

* [glibc/azanella/clang] Remove __LDBL_REDIR macros
@ 2022-06-09 13:14 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 13:14 UTC (permalink / raw)
  To: glibc-cvs

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

commit adc6647d932bfd35b9a87976260c62084976f880
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 3 12:22:34 2022 -0300

    Remove __LDBL_REDIR macros
    
    Since they are not used anymore.

Diff:
---
 include/sys/cdefs.h | 20 --------------------
 misc/sys/cdefs.h    | 45 +--------------------------------------------
 2 files changed, 1 insertion(+), 64 deletions(-)

diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 56adb231aa..7f7aa967fa 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -20,26 +20,6 @@ extern void __chk_fail (void) __attribute__ ((__noreturn__));
 libc_hidden_proto (__chk_fail)
 rtld_hidden_proto (__chk_fail)
 
-/* If we are using redirects internally to support long double,
-   we need to tweak some macros to ensure the PLT bypass tricks
-   continue to work in libc. */
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && IS_IN (libc) && defined SHARED
-
-# undef __LDBL_REDIR_DECL
-# define __LDBL_REDIR_DECL(func) \
-   extern __typeof(func) func __asm (__ASMNAME ("__GI____ieee128_" #func));
-
-# undef libc_hidden_ldbl_proto
-# define libc_hidden_ldbl_proto(func, attrs...) \
-   extern __typeof(func) ___ieee128_ ## func; \
-   libc_hidden_proto (___ieee128_ ## func, ##attrs);
-
-# undef __LDBL_REDIR2_DECL
-# define __LDBL_REDIR2_DECL(func) \
-   extern __typeof(__ ## func) __ ## func __asm (__ASMNAME ("__GI____ieee128___" #func));
-
-#endif
-
 #endif /* !defined _ISOMAC */
 
 #endif
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 15f13f90ac..35a54b694a 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -592,6 +592,7 @@
 _Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
 #  endif /* __REDIRECT */
 # elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
+#  define __LDBL_COMPAT 1
 #  ifdef __REDIRECT
 #   define __REDIRECT_LDBL(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, , , proto, compat)
@@ -626,50 +627,6 @@ _Static_assert (0, "Compat long double requires redirection on this platform");
 # define __REDIRECT_LDBL_COMPAT(name, proto)
 #endif
 
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# ifdef __REDIRECT
-
-/* Alias name defined automatically.  */
-#  define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined automatically, with leading underscores.  */
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name \
-    __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined manually.  */
-#  define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-
-#  define __LDBL_REDIR1_NTH(name, proto, alias) \
-  __REDIRECT_NTH (name, proto, alias)
-#  define __REDIRECT_NTH_LDBL(name, proto, alias) \
-  __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
-
-# else
-_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
-# endif
-#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
-# define __LDBL_COMPAT 1
-# ifdef __REDIRECT
-#  define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
-#  define __LDBL_REDIR(name, proto) \
-  __LDBL_REDIR1 (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
-#  define __LDBL_REDIR_NTH(name, proto) \
-  __LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
-# endif
-#endif
-
 /* __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    intended for use in preprocessor macros.


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

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

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

commit 6a6570e9261f91a864dddb2a9b233418358258e8
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 3 12:22:34 2022 -0300

    Remove __LDBL_REDIR macros
    
    Since they are not used anymore.

Diff:
---
 include/sys/cdefs.h | 20 --------------------
 misc/sys/cdefs.h    | 45 +--------------------------------------------
 2 files changed, 1 insertion(+), 64 deletions(-)

diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 56adb231aa..7f7aa967fa 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -20,26 +20,6 @@ extern void __chk_fail (void) __attribute__ ((__noreturn__));
 libc_hidden_proto (__chk_fail)
 rtld_hidden_proto (__chk_fail)
 
-/* If we are using redirects internally to support long double,
-   we need to tweak some macros to ensure the PLT bypass tricks
-   continue to work in libc. */
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && IS_IN (libc) && defined SHARED
-
-# undef __LDBL_REDIR_DECL
-# define __LDBL_REDIR_DECL(func) \
-   extern __typeof(func) func __asm (__ASMNAME ("__GI____ieee128_" #func));
-
-# undef libc_hidden_ldbl_proto
-# define libc_hidden_ldbl_proto(func, attrs...) \
-   extern __typeof(func) ___ieee128_ ## func; \
-   libc_hidden_proto (___ieee128_ ## func, ##attrs);
-
-# undef __LDBL_REDIR2_DECL
-# define __LDBL_REDIR2_DECL(func) \
-   extern __typeof(__ ## func) __ ## func __asm (__ASMNAME ("__GI____ieee128___" #func));
-
-#endif
-
 #endif /* !defined _ISOMAC */
 
 #endif
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 15f13f90ac..35a54b694a 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -592,6 +592,7 @@
 _Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
 #  endif /* __REDIRECT */
 # elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
+#  define __LDBL_COMPAT 1
 #  ifdef __REDIRECT
 #   define __REDIRECT_LDBL(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, , , proto, compat)
@@ -626,50 +627,6 @@ _Static_assert (0, "Compat long double requires redirection on this platform");
 # define __REDIRECT_LDBL_COMPAT(name, proto)
 #endif
 
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# ifdef __REDIRECT
-
-/* Alias name defined automatically.  */
-#  define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined automatically, with leading underscores.  */
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name \
-    __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined manually.  */
-#  define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-
-#  define __LDBL_REDIR1_NTH(name, proto, alias) \
-  __REDIRECT_NTH (name, proto, alias)
-#  define __REDIRECT_NTH_LDBL(name, proto, alias) \
-  __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
-
-# else
-_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
-# endif
-#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
-# define __LDBL_COMPAT 1
-# ifdef __REDIRECT
-#  define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
-#  define __LDBL_REDIR(name, proto) \
-  __LDBL_REDIR1 (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
-#  define __LDBL_REDIR_NTH(name, proto) \
-  __LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
-# endif
-#endif
-
 /* __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    intended for use in preprocessor macros.


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

* [glibc/azanella/clang] Remove __LDBL_REDIR macros
@ 2022-05-13 14:17 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-05-13 14:17 UTC (permalink / raw)
  To: glibc-cvs

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

commit 8ef08d348b6f2db853c679f7b2151b51aaa5ef6a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 3 12:22:34 2022 -0300

    Remove __LDBL_REDIR macros
    
    Since they are not used anymore.

Diff:
---
 include/sys/cdefs.h | 20 --------------------
 misc/sys/cdefs.h    | 45 +--------------------------------------------
 2 files changed, 1 insertion(+), 64 deletions(-)

diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 56adb231aa..7f7aa967fa 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -20,26 +20,6 @@ extern void __chk_fail (void) __attribute__ ((__noreturn__));
 libc_hidden_proto (__chk_fail)
 rtld_hidden_proto (__chk_fail)
 
-/* If we are using redirects internally to support long double,
-   we need to tweak some macros to ensure the PLT bypass tricks
-   continue to work in libc. */
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && IS_IN (libc) && defined SHARED
-
-# undef __LDBL_REDIR_DECL
-# define __LDBL_REDIR_DECL(func) \
-   extern __typeof(func) func __asm (__ASMNAME ("__GI____ieee128_" #func));
-
-# undef libc_hidden_ldbl_proto
-# define libc_hidden_ldbl_proto(func, attrs...) \
-   extern __typeof(func) ___ieee128_ ## func; \
-   libc_hidden_proto (___ieee128_ ## func, ##attrs);
-
-# undef __LDBL_REDIR2_DECL
-# define __LDBL_REDIR2_DECL(func) \
-   extern __typeof(__ ## func) __ ## func __asm (__ASMNAME ("__GI____ieee128___" #func));
-
-#endif
-
 #endif /* !defined _ISOMAC */
 
 #endif
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 34652ca342..2138312344 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -592,6 +592,7 @@
 _Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
 #  endif /* __REDIRECT */
 # elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
+#  define __LDBL_COMPAT 1
 #  ifdef __REDIRECT
 #   define __REDIRECT_LDBL(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, , , proto, compat)
@@ -626,50 +627,6 @@ _Static_assert (0, "Compat long double requires redirection on this platform");
 # define __REDIRECT_LDBL_COMPAT(name, proto)
 #endif
 
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# ifdef __REDIRECT
-
-/* Alias name defined automatically.  */
-#  define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined automatically, with leading underscores.  */
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name \
-    __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined manually.  */
-#  define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-
-#  define __LDBL_REDIR1_NTH(name, proto, alias) \
-  __REDIRECT_NTH (name, proto, alias)
-#  define __REDIRECT_NTH_LDBL(name, proto, alias) \
-  __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
-
-# else
-_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
-# endif
-#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
-# define __LDBL_COMPAT 1
-# ifdef __REDIRECT
-#  define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
-#  define __LDBL_REDIR(name, proto) \
-  __LDBL_REDIR1 (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
-#  define __LDBL_REDIR_NTH(name, proto) \
-  __LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
-# endif
-#endif
-
 /* __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    intended for use in preprocessor macros.


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

* [glibc/azanella/clang] Remove __LDBL_REDIR macros
@ 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=97f8214b6bb296dbd23ab331473d6379e9e2249b

commit 97f8214b6bb296dbd23ab331473d6379e9e2249b
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 3 12:22:34 2022 -0300

    Remove __LDBL_REDIR macros
    
    Since they are not used anymore.

Diff:
---
 include/sys/cdefs.h | 20 --------------------
 misc/sys/cdefs.h    | 45 +--------------------------------------------
 2 files changed, 1 insertion(+), 64 deletions(-)

diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 56adb231aa..7f7aa967fa 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -20,26 +20,6 @@ extern void __chk_fail (void) __attribute__ ((__noreturn__));
 libc_hidden_proto (__chk_fail)
 rtld_hidden_proto (__chk_fail)
 
-/* If we are using redirects internally to support long double,
-   we need to tweak some macros to ensure the PLT bypass tricks
-   continue to work in libc. */
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && IS_IN (libc) && defined SHARED
-
-# undef __LDBL_REDIR_DECL
-# define __LDBL_REDIR_DECL(func) \
-   extern __typeof(func) func __asm (__ASMNAME ("__GI____ieee128_" #func));
-
-# undef libc_hidden_ldbl_proto
-# define libc_hidden_ldbl_proto(func, attrs...) \
-   extern __typeof(func) ___ieee128_ ## func; \
-   libc_hidden_proto (___ieee128_ ## func, ##attrs);
-
-# undef __LDBL_REDIR2_DECL
-# define __LDBL_REDIR2_DECL(func) \
-   extern __typeof(__ ## func) __ ## func __asm (__ASMNAME ("__GI____ieee128___" #func));
-
-#endif
-
 #endif /* !defined _ISOMAC */
 
 #endif
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 34652ca342..2138312344 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -592,6 +592,7 @@
 _Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
 #  endif /* __REDIRECT */
 # elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
+#  define __LDBL_COMPAT 1
 #  ifdef __REDIRECT
 #   define __REDIRECT_LDBL(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, , , proto, compat)
@@ -626,50 +627,6 @@ _Static_assert (0, "Compat long double requires redirection on this platform");
 # define __REDIRECT_LDBL_COMPAT(name, proto)
 #endif
 
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# ifdef __REDIRECT
-
-/* Alias name defined automatically.  */
-#  define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined automatically, with leading underscores.  */
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name \
-    __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined manually.  */
-#  define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-
-#  define __LDBL_REDIR1_NTH(name, proto, alias) \
-  __REDIRECT_NTH (name, proto, alias)
-#  define __REDIRECT_NTH_LDBL(name, proto, alias) \
-  __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
-
-# else
-_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
-# endif
-#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
-# define __LDBL_COMPAT 1
-# ifdef __REDIRECT
-#  define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
-#  define __LDBL_REDIR(name, proto) \
-  __LDBL_REDIR1 (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
-#  define __LDBL_REDIR_NTH(name, proto) \
-  __LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
-# endif
-#endif
-
 /* __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    intended for use in preprocessor macros.


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

* [glibc/azanella/clang] Remove __LDBL_REDIR macros
@ 2022-05-10 18:21 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-05-10 18:21 UTC (permalink / raw)
  To: glibc-cvs

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

commit 5035f3bf09c0e82243f6a406ead2e57a574c2b45
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 3 12:22:34 2022 -0300

    Remove __LDBL_REDIR macros
    
    Since they are not used anymore.

Diff:
---
 include/sys/cdefs.h | 20 --------------------
 misc/sys/cdefs.h    | 45 +--------------------------------------------
 2 files changed, 1 insertion(+), 64 deletions(-)

diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 56adb231aa..7f7aa967fa 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -20,26 +20,6 @@ extern void __chk_fail (void) __attribute__ ((__noreturn__));
 libc_hidden_proto (__chk_fail)
 rtld_hidden_proto (__chk_fail)
 
-/* If we are using redirects internally to support long double,
-   we need to tweak some macros to ensure the PLT bypass tricks
-   continue to work in libc. */
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && IS_IN (libc) && defined SHARED
-
-# undef __LDBL_REDIR_DECL
-# define __LDBL_REDIR_DECL(func) \
-   extern __typeof(func) func __asm (__ASMNAME ("__GI____ieee128_" #func));
-
-# undef libc_hidden_ldbl_proto
-# define libc_hidden_ldbl_proto(func, attrs...) \
-   extern __typeof(func) ___ieee128_ ## func; \
-   libc_hidden_proto (___ieee128_ ## func, ##attrs);
-
-# undef __LDBL_REDIR2_DECL
-# define __LDBL_REDIR2_DECL(func) \
-   extern __typeof(__ ## func) __ ## func __asm (__ASMNAME ("__GI____ieee128___" #func));
-
-#endif
-
 #endif /* !defined _ISOMAC */
 
 #endif
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 34652ca342..2138312344 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -592,6 +592,7 @@
 _Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
 #  endif /* __REDIRECT */
 # elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
+#  define __LDBL_COMPAT 1
 #  ifdef __REDIRECT
 #   define __REDIRECT_LDBL(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, , , proto, compat)
@@ -626,50 +627,6 @@ _Static_assert (0, "Compat long double requires redirection on this platform");
 # define __REDIRECT_LDBL_COMPAT(name, proto)
 #endif
 
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# ifdef __REDIRECT
-
-/* Alias name defined automatically.  */
-#  define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined automatically, with leading underscores.  */
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name \
-    __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined manually.  */
-#  define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-
-#  define __LDBL_REDIR1_NTH(name, proto, alias) \
-  __REDIRECT_NTH (name, proto, alias)
-#  define __REDIRECT_NTH_LDBL(name, proto, alias) \
-  __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
-
-# else
-_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
-# endif
-#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
-# define __LDBL_COMPAT 1
-# ifdef __REDIRECT
-#  define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
-#  define __LDBL_REDIR(name, proto) \
-  __LDBL_REDIR1 (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
-#  define __LDBL_REDIR_NTH(name, proto) \
-  __LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
-# endif
-#endif
-
 /* __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    intended for use in preprocessor macros.


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

* [glibc/azanella/clang] Remove __LDBL_REDIR macros
@ 2022-04-29 14:01 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-04-29 14:01 UTC (permalink / raw)
  To: glibc-cvs

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

commit f92308dd0f2cc50be05f5acff846598671fc07b1
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 3 12:22:34 2022 -0300

    Remove __LDBL_REDIR macros
    
    Since they are not used anymore.

Diff:
---
 include/sys/cdefs.h | 20 --------------------
 misc/sys/cdefs.h    | 45 +--------------------------------------------
 2 files changed, 1 insertion(+), 64 deletions(-)

diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 56adb231aa..7f7aa967fa 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -20,26 +20,6 @@ extern void __chk_fail (void) __attribute__ ((__noreturn__));
 libc_hidden_proto (__chk_fail)
 rtld_hidden_proto (__chk_fail)
 
-/* If we are using redirects internally to support long double,
-   we need to tweak some macros to ensure the PLT bypass tricks
-   continue to work in libc. */
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && IS_IN (libc) && defined SHARED
-
-# undef __LDBL_REDIR_DECL
-# define __LDBL_REDIR_DECL(func) \
-   extern __typeof(func) func __asm (__ASMNAME ("__GI____ieee128_" #func));
-
-# undef libc_hidden_ldbl_proto
-# define libc_hidden_ldbl_proto(func, attrs...) \
-   extern __typeof(func) ___ieee128_ ## func; \
-   libc_hidden_proto (___ieee128_ ## func, ##attrs);
-
-# undef __LDBL_REDIR2_DECL
-# define __LDBL_REDIR2_DECL(func) \
-   extern __typeof(__ ## func) __ ## func __asm (__ASMNAME ("__GI____ieee128___" #func));
-
-#endif
-
 #endif /* !defined _ISOMAC */
 
 #endif
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 34652ca342..2138312344 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -592,6 +592,7 @@
 _Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
 #  endif /* __REDIRECT */
 # elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
+#  define __LDBL_COMPAT 1
 #  ifdef __REDIRECT
 #   define __REDIRECT_LDBL(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, , , proto, compat)
@@ -626,50 +627,6 @@ _Static_assert (0, "Compat long double requires redirection on this platform");
 # define __REDIRECT_LDBL_COMPAT(name, proto)
 #endif
 
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# ifdef __REDIRECT
-
-/* Alias name defined automatically.  */
-#  define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined automatically, with leading underscores.  */
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name \
-    __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined manually.  */
-#  define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-
-#  define __LDBL_REDIR1_NTH(name, proto, alias) \
-  __REDIRECT_NTH (name, proto, alias)
-#  define __REDIRECT_NTH_LDBL(name, proto, alias) \
-  __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
-
-# else
-_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
-# endif
-#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
-# define __LDBL_COMPAT 1
-# ifdef __REDIRECT
-#  define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
-#  define __LDBL_REDIR(name, proto) \
-  __LDBL_REDIR1 (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
-#  define __LDBL_REDIR_NTH(name, proto) \
-  __LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
-# endif
-#endif
-
 /* __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    intended for use in preprocessor macros.


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

* [glibc/azanella/clang] Remove __LDBL_REDIR macros
@ 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=8954233a6b8a8a82677233388425202ac3a6d34e

commit 8954233a6b8a8a82677233388425202ac3a6d34e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 3 12:22:34 2022 -0300

    Remove __LDBL_REDIR macros
    
    Since they are not used anymore.

Diff:
---
 include/sys/cdefs.h | 20 --------------------
 misc/sys/cdefs.h    | 45 +--------------------------------------------
 2 files changed, 1 insertion(+), 64 deletions(-)

diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 56adb231aa..7f7aa967fa 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -20,26 +20,6 @@ extern void __chk_fail (void) __attribute__ ((__noreturn__));
 libc_hidden_proto (__chk_fail)
 rtld_hidden_proto (__chk_fail)
 
-/* If we are using redirects internally to support long double,
-   we need to tweak some macros to ensure the PLT bypass tricks
-   continue to work in libc. */
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && IS_IN (libc) && defined SHARED
-
-# undef __LDBL_REDIR_DECL
-# define __LDBL_REDIR_DECL(func) \
-   extern __typeof(func) func __asm (__ASMNAME ("__GI____ieee128_" #func));
-
-# undef libc_hidden_ldbl_proto
-# define libc_hidden_ldbl_proto(func, attrs...) \
-   extern __typeof(func) ___ieee128_ ## func; \
-   libc_hidden_proto (___ieee128_ ## func, ##attrs);
-
-# undef __LDBL_REDIR2_DECL
-# define __LDBL_REDIR2_DECL(func) \
-   extern __typeof(__ ## func) __ ## func __asm (__ASMNAME ("__GI____ieee128___" #func));
-
-#endif
-
 #endif /* !defined _ISOMAC */
 
 #endif
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 1beda4fc67..090aad6fed 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -592,6 +592,7 @@
 _Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
 #  endif /* __REDIRECT */
 # elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
+#  define __LDBL_COMPAT 1
 #  ifdef __REDIRECT
 #   define __REDIRECT_LDBL(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, , , proto, compat)
@@ -626,50 +627,6 @@ _Static_assert (0, "Compat long double requires redirection on this platform");
 # define __REDIRECT_LDBL_COMPAT(name, proto)
 #endif
 
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# ifdef __REDIRECT
-
-/* Alias name defined automatically.  */
-#  define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined automatically, with leading underscores.  */
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name \
-    __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined manually.  */
-#  define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-
-#  define __LDBL_REDIR1_NTH(name, proto, alias) \
-  __REDIRECT_NTH (name, proto, alias)
-#  define __REDIRECT_NTH_LDBL(name, proto, alias) \
-  __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
-
-# else
-_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
-# endif
-#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
-# define __LDBL_COMPAT 1
-# ifdef __REDIRECT
-#  define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
-#  define __LDBL_REDIR(name, proto) \
-  __LDBL_REDIR1 (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
-#  define __LDBL_REDIR_NTH(name, proto) \
-  __LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
-# endif
-#endif
-
 /* __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    intended for use in preprocessor macros.


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

* [glibc/azanella/clang] Remove __LDBL_REDIR macros
@ 2022-03-29 20:27 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-29 20:27 UTC (permalink / raw)
  To: glibc-cvs

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

commit 9529e77a9e3a32e13cda5bb5816186350f529bcd
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 3 12:22:34 2022 -0300

    Remove __LDBL_REDIR macros
    
    Since they are not used anymore.

Diff:
---
 include/sys/cdefs.h | 20 --------------------
 misc/sys/cdefs.h    | 45 +--------------------------------------------
 2 files changed, 1 insertion(+), 64 deletions(-)

diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 56adb231aa..7f7aa967fa 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -20,26 +20,6 @@ extern void __chk_fail (void) __attribute__ ((__noreturn__));
 libc_hidden_proto (__chk_fail)
 rtld_hidden_proto (__chk_fail)
 
-/* If we are using redirects internally to support long double,
-   we need to tweak some macros to ensure the PLT bypass tricks
-   continue to work in libc. */
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && IS_IN (libc) && defined SHARED
-
-# undef __LDBL_REDIR_DECL
-# define __LDBL_REDIR_DECL(func) \
-   extern __typeof(func) func __asm (__ASMNAME ("__GI____ieee128_" #func));
-
-# undef libc_hidden_ldbl_proto
-# define libc_hidden_ldbl_proto(func, attrs...) \
-   extern __typeof(func) ___ieee128_ ## func; \
-   libc_hidden_proto (___ieee128_ ## func, ##attrs);
-
-# undef __LDBL_REDIR2_DECL
-# define __LDBL_REDIR2_DECL(func) \
-   extern __typeof(__ ## func) __ ## func __asm (__ASMNAME ("__GI____ieee128___" #func));
-
-#endif
-
 #endif /* !defined _ISOMAC */
 
 #endif
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 1beda4fc67..090aad6fed 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -592,6 +592,7 @@
 _Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
 #  endif /* __REDIRECT */
 # elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
+#  define __LDBL_COMPAT 1
 #  ifdef __REDIRECT
 #   define __REDIRECT_LDBL(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, , , proto, compat)
@@ -626,50 +627,6 @@ _Static_assert (0, "Compat long double requires redirection on this platform");
 # define __REDIRECT_LDBL_COMPAT(name, proto)
 #endif
 
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# ifdef __REDIRECT
-
-/* Alias name defined automatically.  */
-#  define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined automatically, with leading underscores.  */
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name \
-    __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined manually.  */
-#  define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-
-#  define __LDBL_REDIR1_NTH(name, proto, alias) \
-  __REDIRECT_NTH (name, proto, alias)
-#  define __REDIRECT_NTH_LDBL(name, proto, alias) \
-  __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
-
-# else
-_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
-# endif
-#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
-# define __LDBL_COMPAT 1
-# ifdef __REDIRECT
-#  define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
-#  define __LDBL_REDIR(name, proto) \
-  __LDBL_REDIR1 (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
-#  define __LDBL_REDIR_NTH(name, proto) \
-  __LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
-# endif
-#endif
-
 /* __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    intended for use in preprocessor macros.


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

* [glibc/azanella/clang] Remove __LDBL_REDIR macros
@ 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=ec919843933e4c591f5a98c80a09e43e4263c14f

commit ec919843933e4c591f5a98c80a09e43e4263c14f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 3 12:22:34 2022 -0300

    Remove __LDBL_REDIR macros
    
    Since they are not used anymore.

Diff:
---
 include/sys/cdefs.h | 20 --------------------
 misc/sys/cdefs.h    | 45 +--------------------------------------------
 2 files changed, 1 insertion(+), 64 deletions(-)

diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 56adb231aa..7f7aa967fa 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -20,26 +20,6 @@ extern void __chk_fail (void) __attribute__ ((__noreturn__));
 libc_hidden_proto (__chk_fail)
 rtld_hidden_proto (__chk_fail)
 
-/* If we are using redirects internally to support long double,
-   we need to tweak some macros to ensure the PLT bypass tricks
-   continue to work in libc. */
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && IS_IN (libc) && defined SHARED
-
-# undef __LDBL_REDIR_DECL
-# define __LDBL_REDIR_DECL(func) \
-   extern __typeof(func) func __asm (__ASMNAME ("__GI____ieee128_" #func));
-
-# undef libc_hidden_ldbl_proto
-# define libc_hidden_ldbl_proto(func, attrs...) \
-   extern __typeof(func) ___ieee128_ ## func; \
-   libc_hidden_proto (___ieee128_ ## func, ##attrs);
-
-# undef __LDBL_REDIR2_DECL
-# define __LDBL_REDIR2_DECL(func) \
-   extern __typeof(__ ## func) __ ## func __asm (__ASMNAME ("__GI____ieee128___" #func));
-
-#endif
-
 #endif /* !defined _ISOMAC */
 
 #endif
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 1beda4fc67..090aad6fed 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -592,6 +592,7 @@
 _Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
 #  endif /* __REDIRECT */
 # elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
+#  define __LDBL_COMPAT 1
 #  ifdef __REDIRECT
 #   define __REDIRECT_LDBL(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, , , proto, compat)
@@ -626,50 +627,6 @@ _Static_assert (0, "Compat long double requires redirection on this platform");
 # define __REDIRECT_LDBL_COMPAT(name, proto)
 #endif
 
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# ifdef __REDIRECT
-
-/* Alias name defined automatically.  */
-#  define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined automatically, with leading underscores.  */
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name \
-    __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined manually.  */
-#  define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-
-#  define __LDBL_REDIR1_NTH(name, proto, alias) \
-  __REDIRECT_NTH (name, proto, alias)
-#  define __REDIRECT_NTH_LDBL(name, proto, alias) \
-  __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
-
-# else
-_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
-# endif
-#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
-# define __LDBL_COMPAT 1
-# ifdef __REDIRECT
-#  define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
-#  define __LDBL_REDIR(name, proto) \
-  __LDBL_REDIR1 (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
-#  define __LDBL_REDIR_NTH(name, proto) \
-  __LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
-# endif
-#endif
-
 /* __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    intended for use in preprocessor macros.


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

* [glibc/azanella/clang] Remove __LDBL_REDIR macros
@ 2022-03-15 18:36 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-15 18:36 UTC (permalink / raw)
  To: glibc-cvs

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

commit ec919843933e4c591f5a98c80a09e43e4263c14f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 3 12:22:34 2022 -0300

    Remove __LDBL_REDIR macros
    
    Since they are not used anymore.

Diff:
---
 include/sys/cdefs.h | 20 --------------------
 misc/sys/cdefs.h    | 45 +--------------------------------------------
 2 files changed, 1 insertion(+), 64 deletions(-)

diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 56adb231aa..7f7aa967fa 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -20,26 +20,6 @@ extern void __chk_fail (void) __attribute__ ((__noreturn__));
 libc_hidden_proto (__chk_fail)
 rtld_hidden_proto (__chk_fail)
 
-/* If we are using redirects internally to support long double,
-   we need to tweak some macros to ensure the PLT bypass tricks
-   continue to work in libc. */
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && IS_IN (libc) && defined SHARED
-
-# undef __LDBL_REDIR_DECL
-# define __LDBL_REDIR_DECL(func) \
-   extern __typeof(func) func __asm (__ASMNAME ("__GI____ieee128_" #func));
-
-# undef libc_hidden_ldbl_proto
-# define libc_hidden_ldbl_proto(func, attrs...) \
-   extern __typeof(func) ___ieee128_ ## func; \
-   libc_hidden_proto (___ieee128_ ## func, ##attrs);
-
-# undef __LDBL_REDIR2_DECL
-# define __LDBL_REDIR2_DECL(func) \
-   extern __typeof(__ ## func) __ ## func __asm (__ASMNAME ("__GI____ieee128___" #func));
-
-#endif
-
 #endif /* !defined _ISOMAC */
 
 #endif
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 1beda4fc67..090aad6fed 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -592,6 +592,7 @@
 _Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
 #  endif /* __REDIRECT */
 # elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
+#  define __LDBL_COMPAT 1
 #  ifdef __REDIRECT
 #   define __REDIRECT_LDBL(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, , , proto, compat)
@@ -626,50 +627,6 @@ _Static_assert (0, "Compat long double requires redirection on this platform");
 # define __REDIRECT_LDBL_COMPAT(name, proto)
 #endif
 
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# ifdef __REDIRECT
-
-/* Alias name defined automatically.  */
-#  define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined automatically, with leading underscores.  */
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name \
-    __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined manually.  */
-#  define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-
-#  define __LDBL_REDIR1_NTH(name, proto, alias) \
-  __REDIRECT_NTH (name, proto, alias)
-#  define __REDIRECT_NTH_LDBL(name, proto, alias) \
-  __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
-
-# else
-_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
-# endif
-#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
-# define __LDBL_COMPAT 1
-# ifdef __REDIRECT
-#  define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
-#  define __LDBL_REDIR(name, proto) \
-  __LDBL_REDIR1 (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
-#  define __LDBL_REDIR_NTH(name, proto) \
-  __LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
-# endif
-#endif
-
 /* __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    intended for use in preprocessor macros.


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

* [glibc/azanella/clang] Remove __LDBL_REDIR macros
@ 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=e7879ff06ad4505363c6f7c70de14fc68f252067

commit e7879ff06ad4505363c6f7c70de14fc68f252067
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 3 12:22:34 2022 -0300

    Remove __LDBL_REDIR macros
    
    Since they are not used anymore.

Diff:
---
 include/sys/cdefs.h | 20 --------------------
 misc/sys/cdefs.h    | 45 +--------------------------------------------
 2 files changed, 1 insertion(+), 64 deletions(-)

diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 56adb231aa..7f7aa967fa 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -20,26 +20,6 @@ extern void __chk_fail (void) __attribute__ ((__noreturn__));
 libc_hidden_proto (__chk_fail)
 rtld_hidden_proto (__chk_fail)
 
-/* If we are using redirects internally to support long double,
-   we need to tweak some macros to ensure the PLT bypass tricks
-   continue to work in libc. */
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && IS_IN (libc) && defined SHARED
-
-# undef __LDBL_REDIR_DECL
-# define __LDBL_REDIR_DECL(func) \
-   extern __typeof(func) func __asm (__ASMNAME ("__GI____ieee128_" #func));
-
-# undef libc_hidden_ldbl_proto
-# define libc_hidden_ldbl_proto(func, attrs...) \
-   extern __typeof(func) ___ieee128_ ## func; \
-   libc_hidden_proto (___ieee128_ ## func, ##attrs);
-
-# undef __LDBL_REDIR2_DECL
-# define __LDBL_REDIR2_DECL(func) \
-   extern __typeof(__ ## func) __ ## func __asm (__ASMNAME ("__GI____ieee128___" #func));
-
-#endif
-
 #endif /* !defined _ISOMAC */
 
 #endif
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 1beda4fc67..090aad6fed 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -592,6 +592,7 @@
 _Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
 #  endif /* __REDIRECT */
 # elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
+#  define __LDBL_COMPAT 1
 #  ifdef __REDIRECT
 #   define __REDIRECT_LDBL(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, , , proto, compat)
@@ -626,50 +627,6 @@ _Static_assert (0, "Compat long double requires redirection on this platform");
 # define __REDIRECT_LDBL_COMPAT(name, proto)
 #endif
 
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# ifdef __REDIRECT
-
-/* Alias name defined automatically.  */
-#  define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined automatically, with leading underscores.  */
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name \
-    __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined manually.  */
-#  define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-
-#  define __LDBL_REDIR1_NTH(name, proto, alias) \
-  __REDIRECT_NTH (name, proto, alias)
-#  define __REDIRECT_NTH_LDBL(name, proto, alias) \
-  __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
-
-# else
-_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
-# endif
-#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
-# define __LDBL_COMPAT 1
-# ifdef __REDIRECT
-#  define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
-#  define __LDBL_REDIR(name, proto) \
-  __LDBL_REDIR1 (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
-#  define __LDBL_REDIR_NTH(name, proto) \
-  __LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
-# endif
-#endif
-
 /* __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    intended for use in preprocessor macros.


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

* [glibc/azanella/clang] Remove __LDBL_REDIR macros
@ 2022-03-08 18:57 Adhemerval Zanella
  0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-08 18:57 UTC (permalink / raw)
  To: glibc-cvs

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

commit d041eb518864911e74990d108488ccd2b9467aab
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 3 12:22:34 2022 -0300

    Remove __LDBL_REDIR macros
    
    Since they are not used anymore.

Diff:
---
 include/sys/cdefs.h | 20 --------------------
 misc/sys/cdefs.h    | 45 +--------------------------------------------
 2 files changed, 1 insertion(+), 64 deletions(-)

diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 56adb231aa..7f7aa967fa 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -20,26 +20,6 @@ extern void __chk_fail (void) __attribute__ ((__noreturn__));
 libc_hidden_proto (__chk_fail)
 rtld_hidden_proto (__chk_fail)
 
-/* If we are using redirects internally to support long double,
-   we need to tweak some macros to ensure the PLT bypass tricks
-   continue to work in libc. */
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && IS_IN (libc) && defined SHARED
-
-# undef __LDBL_REDIR_DECL
-# define __LDBL_REDIR_DECL(func) \
-   extern __typeof(func) func __asm (__ASMNAME ("__GI____ieee128_" #func));
-
-# undef libc_hidden_ldbl_proto
-# define libc_hidden_ldbl_proto(func, attrs...) \
-   extern __typeof(func) ___ieee128_ ## func; \
-   libc_hidden_proto (___ieee128_ ## func, ##attrs);
-
-# undef __LDBL_REDIR2_DECL
-# define __LDBL_REDIR2_DECL(func) \
-   extern __typeof(__ ## func) __ ## func __asm (__ASMNAME ("__GI____ieee128___" #func));
-
-#endif
-
 #endif /* !defined _ISOMAC */
 
 #endif
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 1beda4fc67..090aad6fed 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -592,6 +592,7 @@
 _Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
 #  endif /* __REDIRECT */
 # elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
+#  define __LDBL_COMPAT 1
 #  ifdef __REDIRECT
 #   define __REDIRECT_LDBL(name, proto, ieee128, compat) \
       __REDIRECT_LDBL1 (name, , , proto, compat)
@@ -626,50 +627,6 @@ _Static_assert (0, "Compat long double requires redirection on this platform");
 # define __REDIRECT_LDBL_COMPAT(name, proto)
 #endif
 
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# ifdef __REDIRECT
-
-/* Alias name defined automatically.  */
-#  define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined automatically, with leading underscores.  */
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name \
-    __asm (__ASMNAME ("__" #name "ieee128"));
-
-/* Alias name defined manually.  */
-#  define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-
-#  define __LDBL_REDIR1_NTH(name, proto, alias) \
-  __REDIRECT_NTH (name, proto, alias)
-#  define __REDIRECT_NTH_LDBL(name, proto, alias) \
-  __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
-
-# else
-_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
-# endif
-#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
-# define __LDBL_COMPAT 1
-# ifdef __REDIRECT
-#  define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
-#  define __LDBL_REDIR(name, proto) \
-  __LDBL_REDIR1 (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
-#  define __LDBL_REDIR_NTH(name, proto) \
-  __LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
-#  define __LDBL_REDIR2_DECL(name) \
-  extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
-#  define __LDBL_REDIR1_DECL(name, alias) \
-  extern __typeof (name) name __asm (__ASMNAME (#alias));
-#  define __LDBL_REDIR_DECL(name) \
-  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
-# endif
-#endif
-
 /* __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    intended for use in preprocessor macros.


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

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

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 12:51 [glibc/azanella/clang] Remove __LDBL_REDIR macros Adhemerval Zanella
  -- strict thread matches above, loose matches on Subject: below --
2022-06-09 21:17 Adhemerval Zanella
2022-06-09 13:14 Adhemerval Zanella
2022-06-03 14:03 Adhemerval Zanella
2022-05-13 14:17 Adhemerval Zanella
2022-05-12 19:30 Adhemerval Zanella
2022-05-10 18:21 Adhemerval Zanella
2022-04-29 14:01 Adhemerval Zanella
2022-03-31 19:03 Adhemerval Zanella
2022-03-29 20:27 Adhemerval Zanella
2022-03-16 17:58 Adhemerval Zanella
2022-03-15 18:36 Adhemerval Zanella
2022-03-11 17:20 Adhemerval Zanella
2022-03-08 18:57 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).