public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] Remove __LDBL_REDIR macros Date: Fri, 29 Apr 2022 14:01:23 +0000 (GMT) [thread overview] Message-ID: <20220429140123.85F7D3856DCD@sourceware.org> (raw) 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.
next reply other threads:[~2022-04-29 14:01 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-04-29 14:01 Adhemerval Zanella [this message] -- 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-04 12:51 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220429140123.85F7D3856DCD@sourceware.org \ --to=azanella@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).