svn commit: r209202 - projects/clangbsd/sys/boot/i386/boot2
Roman Divacky
rdivacky at FreeBSD.org
Tue Jun 15 13:08:04 UTC 2010
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')
More information about the svn-src-projects
mailing list