summaryrefslogtreecommitdiff
path: root/firmware/thread.c
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2011-12-09 15:33:59 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2011-12-09 15:33:59 +0000
commit59e71ee80c65426b2f569cc4c60936053cc9caa5 (patch)
tree0b4c61bbd10fbb1fd3c00a877f4a9df6338496e9 /firmware/thread.c
parent9653ae364cc8b558c846d3391e3ef9eb843d2385 (diff)
downloadrockbox-59e71ee80c65426b2f569cc4c60936053cc9caa5.zip
rockbox-59e71ee80c65426b2f569cc4c60936053cc9caa5.tar.gz
rockbox-59e71ee80c65426b2f569cc4c60936053cc9caa5.tar.bz2
rockbox-59e71ee80c65426b2f569cc4c60936053cc9caa5.tar.xz
Introduce USED_ATTR wrapper for __attribute__((used)).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31188 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/thread.c')
-rw-r--r--firmware/thread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/thread.c b/firmware/thread.c
index a1886cb..7b91f8f 100644
--- a/firmware/thread.c
+++ b/firmware/thread.c
@@ -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));