summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-10-16 08:17:20 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-10-26 09:13:19 +0100
commita3ba5b3798c5f02641b1d1f25109fc5ca99361a8 (patch)
tree95831ff2693c2bb126aa516b7e3068eecad6f8a4
parentbasedefs.h: Add and use RTEMS_NO_RETURN (diff)
downloadrtems-a3ba5b3798c5f02641b1d1f25109fc5ca99361a8.tar.bz2
basdefs.h: Add RTEMS_PURE
-rw-r--r--cpukit/score/include/rtems/score/basedefs.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h
index 5575a068c7..9e6bc0ab26 100644
--- a/cpukit/score/include/rtems/score/basedefs.h
+++ b/cpukit/score/include/rtems/score/basedefs.h
@@ -171,12 +171,14 @@
* variables.
*/
#ifdef __GNUC__
- #define RTEMS_COMPILER_PURE_ATTRIBUTE \
- __attribute__ ((pure))
+ #define RTEMS_PURE __attribute__((__pure__))
#else
- #define RTEMS_COMPILER_PURE_ATTRIBUTE
+ #define RTEMS_PURE
#endif
+/* Provided for backward compatibility */
+#define RTEMS_COMPILER_PURE_ATTRIBUTE RTEMS_PURE
+
/**
* Instructs the compiler to issue a warning whenever a variable or function
* with this attribute will be used.