diff options
author | guenther <> | 2018-01-18 08:23:44 +0000 |
---|---|---|
committer | guenther <> | 2018-01-18 08:23:44 +0000 |
commit | eec7eb4a2bfb71e0831bf36537ae124b4a824286 (patch) | |
tree | 0d4e42077f9fb438a8ae55281aacb38a81c34a67 /src/lib/libc/string/ffs.c | |
parent | acbaebc6cff388f806f67cb2ca1b90564bf1ce82 (diff) | |
download | openbsd-eec7eb4a2bfb71e0831bf36537ae124b4a824286.tar.gz openbsd-eec7eb4a2bfb71e0831bf36537ae124b4a824286.tar.bz2 openbsd-eec7eb4a2bfb71e0831bf36537ae124b4a824286.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 'src/lib/libc/string/ffs.c')
-rw-r--r-- | src/lib/libc/string/ffs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libc/string/ffs.c b/src/lib/libc/string/ffs.c index a75fd9d79f..09d6e35eca 100644 --- a/src/lib/libc/string/ffs.c +++ b/src/lib/libc/string/ffs.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ffs.c,v 1.9 2015/08/31 02:53:57 guenther Exp $ */ | 1 | /* $OpenBSD: ffs.c,v 1.10 2018/01/18 08:23:44 guenther Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Public domain. | 4 | * Public domain. |
@@ -38,4 +38,3 @@ ffs(int mask) | |||
38 | 38 | ||
39 | return (bit + t[ r & 0xf ]); | 39 | return (bit + t[ r & 0xf ]); |
40 | } | 40 | } |
41 | DEF_WEAK(ffs); | ||