[rtems commit] score: Add RTEMS_ALIAS()
Sebastian Huber
sebh at rtems.org
Wed Nov 23 11:54:43 UTC 2016
Module: rtems
Branch: master
Commit: 520e07db860b2f5bec5fe72fb46db2d382c52749
Changeset: http://git.rtems.org/rtems/commit/?id=520e07db860b2f5bec5fe72fb46db2d382c52749
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Nov 22 08:46:02 2016 +0100
score: Add RTEMS_ALIAS()
---
cpukit/score/include/rtems/score/basedefs.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h
index d142163..22cc246 100644
--- a/cpukit/score/include/rtems/score/basedefs.h
+++ b/cpukit/score/include/rtems/score/basedefs.h
@@ -180,6 +180,16 @@
#endif
/**
+ * @brief Instructs the compiler to generate an alias to the specified target
+ * function.
+ */
+#if defined(__GNUC__)
+ #define RTEMS_ALIAS( _target ) __attribute__((__alias__(#_target)))
+#else
+ #define RTEMS_ALIAS( _target )
+#endif
+
+/**
* @brief Instructs the compiler to enforce the specified alignment.
*/
#if defined(__GNUC__)
More information about the vc
mailing list