From 5c76f998f23ca82a90a3354eb68a3099df8cf72f Mon Sep 17 00:00:00 2001 From: guenther <> Date: Thu, 18 Jan 2018 08:23:44 +0000 Subject: [PATCH] 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@ --- src/lib/libc/string/ffs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/libc/string/ffs.c b/src/lib/libc/string/ffs.c index a75fd9d7..09d6e35e 100644 --- a/src/lib/libc/string/ffs.c +++ b/src/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);