Date: 09 Jul 2001 13:35:26 +0200 From: Dag-Erling Smorgrav <des@ofug.org> To: Bruce Evans <bde@zeta.org.au> Cc: arch@FreeBSD.ORG Subject: Re: -fno-builtin Message-ID: <xzpr8vqtjwh.fsf@flood.ping.uio.no> In-Reply-To: <Pine.BSF.4.21.0107092057001.87275-100000@besplex.bde.org> References: <Pine.BSF.4.21.0107092057001.87275-100000@besplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans <bde@zeta.org.au> writes: > Unfortunately, the inline function version doesn't work right, at least > on i386's: __builtin_strlen("foo") gives code that loads the constant > result 3, but the inline strlen("foo") gives code that scans the string. What about a macro? #define strlen(s) __builtin_strlen(s) Would this work? DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpr8vqtjwh.fsf>