[RTEMS Project] #3935: Remove use of RTEMS_INLINE_ROUTINE in the RTEMS sources
RTEMS trac
trac at rtems.org
Mon Apr 6 13:40:56 UTC 2020
#3935: Remove use of RTEMS_INLINE_ROUTINE in the RTEMS sources
-----------------------------+------------------------------
Reporter: Sebastian Huber | Owner: Sebastian Huber
Type: task | Status: assigned
Priority: normal | Milestone: 6.1
Component: unspecified | Version: 6
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: |
-----------------------------+------------------------------
Comment (by Sebastian Huber):
I don't understand the problem, we use this for a long time:
{{{
/**
* The following (in conjunction with compiler arguments) are used
* to choose between the use of static inline functions and macro
* functions. The static inline implementation allows better
* type checking with no cost in code size or execution speed.
*/
#ifdef __GNUC__
#define RTEMS_INLINE_ROUTINE static __inline__
#else
#define RTEMS_INLINE_ROUTINE static inline
#endif
}}}
Wikipedia has some background information:
https://en.wikipedia.org/wiki/Inline_function
--
Ticket URL: <http://devel.rtems.org/ticket/3935#comment:4>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list