From owner-svn-src-projects@FreeBSD.ORG Tue Jun 15 13:08:04 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17C5B106566C; Tue, 15 Jun 2010 13:08:04 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 076B98FC1C; Tue, 15 Jun 2010 13:08:04 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o5FD837J087014; Tue, 15 Jun 2010 13:08:03 GMT (envelope-from rdivacky@svn.freebsd.org) Received: (from rdivacky@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o5FD83WM087012; Tue, 15 Jun 2010 13:08:03 GMT (envelope-from rdivacky@svn.freebsd.org) Message-Id: <201006151308.o5FD83WM087012@svn.freebsd.org> From: Roman Divacky Date: Tue, 15 Jun 2010 13:08:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r209202 - projects/clangbsd/sys/boot/i386/boot2 X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2010 13:08:04 -0000 Author: rdivacky Date: Tue Jun 15 13:08:03 2010 New Revision: 209202 URL: http://svn.freebsd.org/changeset/base/209202 Log: Use __noinline instead of __attribute__((noinline)). Remove this from strcmp() as it is used only once. Suggested by: ed, Benjamin Kramer Modified: projects/clangbsd/sys/boot/i386/boot2/boot2.c Modified: projects/clangbsd/sys/boot/i386/boot2/boot2.c ============================================================================== --- projects/clangbsd/sys/boot/i386/boot2/boot2.c Tue Jun 15 11:37:33 2010 (r209201) +++ projects/clangbsd/sys/boot/i386/boot2/boot2.c Tue Jun 15 13:08:03 2010 (r209202) @@ -152,7 +152,7 @@ static int xgetc(int); static int getc(int); void memcpy(void *, const void *, int); -void __attribute__ ((noinline)) +void __noinline memcpy(void *dst, const void *src, int len) { const char *s = src; @@ -162,7 +162,7 @@ memcpy(void *dst, const void *src, int l *d++ = *s++; } -static int __attribute__ ((noinline)) +static int strcmp(const char *s1, const char *s2) { for (; *s1 == *s2 && *s1; s1++, s2++); @@ -601,7 +601,7 @@ printf(const char *fmt,...) return; } -static void __attribute__ ((noinline)) +static void __noinline putchar(int c) { if (c == '\n')