diff options
author | 2013-03-28 18:09:38 +0000 | |
---|---|---|
committer | 2013-03-28 18:09:38 +0000 | |
commit | 2fbf033e009bb5c4db92160700ec03c25f292728 (patch) | |
tree | 9aef21f59264f48d8d9ffa3618aef7e19a65c105 /lib/libc/gen/isinf.c | |
parent | Add STRONG_ALIAS macros to be used from assembly code in libc and (diff) | |
download | wireguard-openbsd-2fbf033e009bb5c4db92160700ec03c25f292728.tar.xz wireguard-openbsd-2fbf033e009bb5c4db92160700ec03c25f292728.zip |
Switch libc and libm to use strong aliases rather than weak aliases
where appropriate. Among other things makes the symbols consistent
across all architectures (notably where ldbl mantissa is 53 bits).
While at it, kill unused LINTLIBRARY/PROTOLIB1 cruft which was there
to trick lint into recording the right prototypes for aliased
functions. Most of the work done at the awesome n2k13 hackathon.
Agreed by kettenis@, guenther@, matthew@.
Diffstat (limited to 'lib/libc/gen/isinf.c')
-rw-r--r-- | lib/libc/gen/isinf.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/libc/gen/isinf.c b/lib/libc/gen/isinf.c index 264864cbad3..0bff56d337b 100644 --- a/lib/libc/gen/isinf.c +++ b/lib/libc/gen/isinf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isinf.c,v 1.7 2012/12/05 23:19:59 deraadt Exp $ */ +/* $OpenBSD: isinf.c,v 1.8 2013/03/28 18:09:38 martynas Exp $ */ /* * Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - #include <sys/types.h> #include <machine/ieee.h> #include <float.h> @@ -39,16 +37,11 @@ __isinff(float f) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -int __isinfl(long double); -#else /* lint */ -__weak_alias(__isinfl, __isinf); -#endif /* lint */ +__strong_alias(__isinfl, __isinf); #endif /* LDBL_MANT_DIG == 53 */ /* * 3BSD compatibility aliases. */ -__weak_alias(isinf, __isinf); -__weak_alias(isinff, __isinff); +__strong_alias(isinf, __isinf); +__strong_alias(isinff, __isinff); |