Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys add __noclone for gcc 4.5.
details: https://anonhg.NetBSD.org/src/rev/4a8a40915278
branches: trunk
changeset: 770254:4a8a40915278
user: chs <chs%NetBSD.org@localhost>
date: Sun Oct 09 20:30:19 2011 +0000
description:
add __noclone for gcc 4.5.
diffstat:
sys/sys/cdefs.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 95050f20acdd -r 4a8a40915278 sys/sys/cdefs.h
--- a/sys/sys/cdefs.h Sun Oct 09 18:25:28 2011 +0000
+++ b/sys/sys/cdefs.h Sun Oct 09 20:30:19 2011 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index