1
0
Fork 0
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:
Boris Gjenero 2011-12-09 15:33:59 +00:00
parent 9653ae364c
commit 59e71ee80c
11 changed files with 35 additions and 10 deletions

View file

@ -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));