diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2018-01-18 08:23:45 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2018-01-18 08:23:45 +0000 |
commit | 31d66bf6f1fb6a1506e492ffa59f8384cf4a0a06 (patch) | |
tree | 7886f6a86056870b07837d98d446575c4c9c34d4 /lib/libc/string | |
parent | a030b7decd49004fc8ab4c43a316f359f4647822 (diff) |
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')
-rw-r--r-- | lib/libc/string/ffs.c | 3 |
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); |