diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2018-03-12 06:19:20 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2018-03-12 06:19:20 +0000 |
commit | e26180ec72cb8fd5178554b1522eff308b4e2532 (patch) | |
tree | 317061ff53a1e2e2c5cea87d9da7262d839a7561 /lib/libm/hidden | |
parent | 82463ab88b4e10d2016ff9a5e23e28cdfea2c920 (diff) |
Gah, rintl() is used internally, so add a macro for the fourth possiblity,
a cloning a non-standard, long double function which _is_ used from the
matching plain double function
build failured pointed out by deraadt@
Diffstat (limited to 'lib/libm/hidden')
-rw-r--r-- | lib/libm/hidden/namespace.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libm/hidden/namespace.h b/lib/libm/hidden/namespace.h index 92d4efd9b6c..b95e46140cb 100644 --- a/lib/libm/hidden/namespace.h +++ b/lib/libm/hidden/namespace.h @@ -1,4 +1,4 @@ -/* $OpenBSD: namespace.h,v 1.2 2018/03/12 04:22:56 guenther Exp $ */ +/* $OpenBSD: namespace.h,v 1.3 2018/03/12 06:19:19 guenther Exp $ */ #ifndef _LIBM_NAMESPACE_H_ #define _LIBM_NAMESPACE_H_ @@ -106,6 +106,9 @@ #define LDBL_CLONE(x) LDBL_UNUSED_CLONE(x); \ __dso_hidden typeof(HIDDEN(x##l)) HIDDEN(x##l) \ __attribute__((alias (HIDDEN_STRING(x)))) +#define LDBL_NONSTD_CLONE(x) LDBL_NONSTD_UNUSED_CLONE(x); \ + __dso_hidden typeof(HIDDEN(x##l)) HIDDEN(x##l) \ + __attribute__((alias (HIDDEN_STRING(x)))) #if __LDBL_MANT_DIG__ == __DBL_MANT_DIG__ # define LDBL_PROTO_NORMAL(x) typeof(x) HIDDEN(x) @@ -113,12 +116,14 @@ # define LDBL_MAYBE_CLONE(x) LDBL_CLONE(x) # define LDBL_MAYBE_UNUSED_CLONE(x) LDBL_UNUSED_CLONE(x) # define LDBL_MAYBE_NONSTD_UNUSED_CLONE(x) LDBL_NONSTD_UNUSED_CLONE(x) +# define LDBL_MAYBE_NONSTD_CLONE(x) LDBL_NONSTD_CLONE(x) #else # define LDBL_PROTO_NORMAL(x) PROTO_NORMAL(x) # define LDBL_PROTO_STD_DEPRECATED(x) PROTO_STD_DEPRECATED(x) # define LDBL_MAYBE_CLONE(x) __asm("") # define LDBL_MAYBE_UNUSED_CLONE(x) __asm("") # define LDBL_MAYBE_NONSTD_UNUSED_CLONE(x) __asm("") +# define LDBL_MAYBE_NONSTD_CLONE(x) __asm("") #endif #endif /* _LIBM_NAMESPACE_H_ */ |