svn commit: r205217 - projects/clangbsd/sys/boot/i386/boot2

Roman Divacky rdivacky at FreeBSD.org
Tue Mar 16 16:48:59 UTC 2010


Author: rdivacky
Date: Tue Mar 16 16:48:58 2010
New Revision: 205217
URL: http://svn.freebsd.org/changeset/base/205217

Log:
  sprinkle __attribute__ ((noinline)) around

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 Mar 16 16:30:24 2010	(r205216)
+++ projects/clangbsd/sys/boot/i386/boot2/boot2.c	Tue Mar 16 16:48:58 2010	(r205217)
@@ -152,7 +152,7 @@ static int xgetc(int);
 static int getc(int);
 
 void memcpy(void *, const void *, int);
-void
+void __attribute__ ((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 inline int
+static int __attribute__ ((noinline))
 strcmp(const char *s1, const char *s2)
 {
     for (; *s1 == *s2 && *s1; s1++, s2++);
@@ -601,7 +601,7 @@ printf(const char *fmt,...)
     return;
 }
 
-static void
+static void __attribute__ ((noinline))
 putchar(int c)
 {
     if (c == '\n')


More information about the svn-src-projects mailing list