Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Add a __always_inline
details: https://anonhg.NetBSD.org/src/rev/4d92268a1c03
branches: trunk
changeset: 779551:4d92268a1c03
user: dsl <dsl%NetBSD.org@localhost>
date: Sat Jun 02 21:27:51 2012 +0000
description:
Add a __always_inline
diffstat:
sys/sys/cdefs.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 89ab1266ab3c -r 4d92268a1c03 sys/sys/cdefs.h
--- a/sys/sys/cdefs.h Sat Jun 02 20:50:41 2012 +0000
+++ b/sys/sys/cdefs.h Sat Jun 02 21:27:51 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.98 2012/04/30 20:41:33 pgoyette Exp $ */
+/* $NetBSD: cdefs.h,v 1.99 2012/06/02 21:27:51 dsl Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -232,6 +232,12 @@
#define __noinline /* nothing */
#endif
+#if __GNUC_PREREQ__(3, 0)
+#define __always_inline __attribute__((__always_inline__))
+#else
+#define __always_inline /* nothing */
+#endif
+
#if __GNUC_PREREQ__(4, 1)
#define __returns_twice __attribute__((__returns_twice__))
#else
Home |
Main Index |
Thread Index |
Old Index