summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-29 12:08:27 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-29 12:08:27 +0200
commit74f9db8887c12f3e01719f71fd6eced148bb00d2 (patch)
tree732e8bb4b0fad6172a7a8479e90cfe3f9367c8b0 /cpukit/score/include/rtems
parentscore: Add SMP EDF scheduler (diff)
downloadrtems-74f9db8887c12f3e01719f71fd6eced148bb00d2.tar.bz2
score: Add RTEMS_NO_INLINE
Update #3056.
Diffstat (limited to 'cpukit/score/include/rtems')
-rw-r--r--cpukit/score/include/rtems/score/basedefs.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h
index 79bf15e879..288afd41aa 100644
--- a/cpukit/score/include/rtems/score/basedefs.h
+++ b/cpukit/score/include/rtems/score/basedefs.h
@@ -10,7 +10,7 @@
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
- * Copyright (c) 2010, 2016 embedded brains GmbH.
+ * Copyright (c) 2010, 2017 embedded brains GmbH.
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
@@ -91,6 +91,16 @@
#endif
/**
+ * The following defines a compiler specific attribute which informs
+ * the compiler that the method must not be inlined.
+ */
+#ifdef __GNUC__
+ #define RTEMS_NO_INLINE __attribute__((__noinline__))
+#else
+ #define RTEMS_NO_INLINE
+#endif
+
+/**
* The following macro is a compiler specific way to indicate that
* the method will NOT return to the caller. This can assist the
* compiler in code generation and avoid unreachable paths. This