summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/ffs.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2018-01-18 08:23:44 +0000
committerguenther <guenther@openbsd.org>2018-01-18 08:23:44 +0000
commitae3cb403620ab940fbaabb3055fac045a63d56b7 (patch)
treec9675235761df3e321bc80b853144e5c9788dfbc /lib/libc/string/ffs.c
parentUnlike other archs, mips64 needs ld.so to know about symbol visibility and (diff)
downloadwireguard-openbsd-ae3cb403620ab940fbaabb3055fac045a63d56b7.tar.xz
wireguard-openbsd-ae3cb403620ab940fbaabb3055fac045a63d56b7.zip
Instead of trying to handle ffs() with the normal rename-mark-hidden-and-alias
dance, mark it protected. This works better for both gcc and clang: gcc blocks overriding of internal calls, while clang permits inlining again. ok otto@
Diffstat (limited to 'lib/libc/string/ffs.c')
-rw-r--r--lib/libc/string/ffs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/string/ffs.c b/lib/libc/string/ffs.c
index a75fd9d79f8..09d6e35eca2 100644
--- a/lib/libc/string/ffs.c
+++ b/lib/libc/string/ffs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs.c,v 1.9 2015/08/31 02:53:57 guenther Exp $ */
+/* $OpenBSD: ffs.c,v 1.10 2018/01/18 08:23:44 guenther Exp $ */
/*
* Public domain.
@@ -38,4 +38,3 @@ ffs(int mask)
return (bit + t[ r & 0xf ]);
}
-DEF_WEAK(ffs);