From 31d66bf6f1fb6a1506e492ffa59f8384cf4a0a06 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Thu, 18 Jan 2018 08:23:45 +0000 Subject: 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@ --- lib/libc/arch/alpha/string/ffs.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libc/arch/alpha/string/ffs.S') diff --git a/lib/libc/arch/alpha/string/ffs.S b/lib/libc/arch/alpha/string/ffs.S index 6600b3aeeb2..9e0dba4654c 100644 --- a/lib/libc/arch/alpha/string/ffs.S +++ b/lib/libc/arch/alpha/string/ffs.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs.S,v 1.3 2015/08/31 02:53:56 guenther Exp $ */ +/* $OpenBSD: ffs.S,v 1.4 2018/01/18 08:23:44 guenther Exp $ */ /* $NetBSD: ffs.S,v 1.3 1996/10/17 03:08:13 cgd Exp $ */ /* @@ -89,4 +89,5 @@ Ldone: Lallzero: bis zero, zero, v0 RET -END_WEAK(ffs) +END(ffs) +.protected ffs -- cgit v1.2.3