aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2008-03-25 21:30:01 +0000
committerSam Leffler <sam@FreeBSD.org>2008-03-25 21:30:01 +0000
commit85a8a1ddff72e7440ff96fbdc70622a9f196632b (patch)
tree3ef0eb0090e9dd7072e27896c304b84be868a3eb
parentfb27dd1db3072dd962a5e0c98a7d4110c662158f (diff)
downloadsrc-85a8a1ddff72e7440ff96fbdc70622a9f196632b.tar.gz
src-85a8a1ddff72e7440ff96fbdc70622a9f196632b.zip
add __noinline
Submitted by: imp Reviewed by: kan (long ago) MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=177618
-rw-r--r--sys/sys/cdefs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index 5a2564b194d1..a410eb9ee660 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -241,6 +241,12 @@
#define __gnu89_inline
#endif
+#if __GNUC_PREREQ__(3, 1)
+#define __noinline __attribute__ ((__noinline__))
+#else
+#define __noinline
+#endif
+
#if __GNUC_PREREQ__(3, 3)
#define __nonnull(x) __attribute__((__nonnull__(x)))
#else