Skip to content

Commit ee050e2

Browse files
ceolinkartben
authored andcommitted
toolchain: Add __noinline attribute
Add a new attribute to instruct the compiler to not inline a function. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 7e32b20 commit ee050e2

File tree

1 file changed

+4
-0
lines changed
  • include/zephyr/toolchain

1 file changed

+4
-0
lines changed

include/zephyr/toolchain/gcc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ do { \
225225
#define __aligned(x) __attribute__((__aligned__(x)))
226226
#endif
227227

228+
#ifndef __noinline
229+
#define __noinline __attribute__((noinline))
230+
#endif
231+
228232
#define __may_alias __attribute__((__may_alias__))
229233

230234
#ifndef __printf_like

0 commit comments

Comments
 (0)