Module Name: src
Committed By: chs
Date: Sun Oct 9 20:30:19 UTC 2011
Modified Files:
src/sys/sys: cdefs.h
Log Message:
add __noclone for gcc 4.5.
To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/sys/sys/cdefs.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/cdefs.h
diff -u src/sys/sys/cdefs.h:1.87 src/sys/sys/cdefs.h:1.88
--- src/sys/sys/cdefs.h:1.87 Tue Aug 16 23:30:24 2011
+++ src/sys/sys/cdefs.h Sun Oct 9 20:30:19 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.87 2011/08/16 23:30:24 dyoung Exp $ */
+/* $NetBSD: cdefs.h,v 1.88 2011/10/09 20:30:19 chs Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -232,6 +232,12 @@
#define __noinline /* nothing */
#endif
+#if __GNUC_PREREQ__(4, 5)
+#define __noclone __attribute__((__noclone__))
+#else
+#define __noclone /* nothing */
+#endif
+
#if __GNUC_PREREQ__(2, 7)
#define __unused __attribute__((__unused__))
#else