Date: Tue, 15 Jun 2010 13:08:03 +0000 (UTC) From: Roman Divacky <rdivacky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r209202 - projects/clangbsd/sys/boot/i386/boot2 Message-ID: <201006151308.o5FD83WM087012@svn.freebsd.org>
index | next in thread | raw e-mail
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')help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006151308.o5FD83WM087012>
