forked from len0rd/rockbox
Introduce USED_ATTR wrapper for __attribute__((used)).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31188 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9653ae364c
commit
59e71ee80c
11 changed files with 35 additions and 10 deletions
|
|
@ -30,6 +30,8 @@
|
|||
#ifdef RB_PROFILE
|
||||
#include <profile.h>
|
||||
#endif
|
||||
#include "gcc_extensions.h"
|
||||
|
||||
/****************************************************************************
|
||||
* ATTENTION!! *
|
||||
* See notes below on implementing processor-specific portions! *
|
||||
|
|
@ -163,7 +165,7 @@ static inline void load_context(const void* addr)
|
|||
|
||||
#if NUM_CORES > 1
|
||||
static void thread_final_exit_do(struct thread_entry *current)
|
||||
__attribute__((noinline, noreturn, used));
|
||||
__attribute__((noinline, noreturn)) USED_ATTR;
|
||||
#else
|
||||
static inline void thread_final_exit(struct thread_entry *current)
|
||||
__attribute__((always_inline, noreturn));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue