about summary refs log tree commit diff
path: root/misc/sys
diff options
context:
space:
mode:
authorSachin Monga <smonga@linux.ibm.com>2023-05-10 13:59:21 -0400
committerRajalakshmi Srinivasaraghavan <rajis@linux.ibm.com>2023-05-10 13:59:48 -0500
commit1a57ab0c923f269d1d7c29dfe4634c0ae66d69ac (patch)
treea99cd546a6a7948f9b937d62473c3d0928547f57 /misc/sys
parentf0dbe112f532be2101bb392f67f9f164cade25b0 (diff)
downloadglibc-1a57ab0c923f269d1d7c29dfe4634c0ae66d69ac.tar.gz
glibc-1a57ab0c923f269d1d7c29dfe4634c0ae66d69ac.tar.xz
glibc-1a57ab0c923f269d1d7c29dfe4634c0ae66d69ac.zip
Added Redirects to longdouble error functions [BZ #29033]
This patch redirects the error functions to the appropriate
longdouble variants which enables the compiler to optimize
for the abi ieeelongdouble.

Signed-off-by: Sachin Monga <smonga@linux.ibm.com>
Diffstat (limited to 'misc/sys')
-rw-r--r--misc/sys/cdefs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 9a07e297a6..393d9091d9 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -576,6 +576,8 @@
 #  define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
 #  define __LDBL_REDIR_DECL(name) \
   extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
+#  define __REDIRECT_LDBL(name, proto, alias) \
+  name proto __asm (__ASMNAME ("__" #alias "ieee128"))
 
 /* Alias name defined automatically, with leading underscores.  */
 #  define __LDBL_REDIR2_DECL(name) \
@@ -593,7 +595,6 @@
   __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
 
 /* Unused.  */
-#  define __REDIRECT_LDBL(name, proto, alias) ... unused__redirect_ldbl
 #  define __LDBL_REDIR_NTH(name, proto) ... unused__ldbl_redir_nth
 
 # else