From 520e07db860b2f5bec5fe72fb46db2d382c52749 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 22 Nov 2016 08:46:02 +0100 Subject: score: Add RTEMS_ALIAS() --- cpukit/score/include/rtems/score/basedefs.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpukit') diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h index d142163e91..22cc246899 100644 --- a/cpukit/score/include/rtems/score/basedefs.h +++ b/cpukit/score/include/rtems/score/basedefs.h @@ -179,6 +179,16 @@ #define RTEMS_PACKED #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. */ -- cgit v1.2.3