diff options
author | Boris Gjenero <dreamlayers@rockbox.org> | 2011-12-09 15:33:59 +0000 |
---|---|---|
committer | Boris Gjenero <dreamlayers@rockbox.org> | 2011-12-09 15:33:59 +0000 |
commit | 59e71ee80c65426b2f569cc4c60936053cc9caa5 (patch) | |
tree | 0b4c61bbd10fbb1fd3c00a877f4a9df6338496e9 /firmware/thread.c | |
parent | 9653ae364cc8b558c846d3391e3ef9eb843d2385 (diff) | |
download | rockbox-59e71ee80c65426b2f569cc4c60936053cc9caa5.tar.gz rockbox-59e71ee80c65426b2f569cc4c60936053cc9caa5.zip |
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index a1886cbc07..7b91f8fcbd 100644 --- a/firmware/thread.c +++ b/firmware/thread.c | |||
@@ -30,6 +30,8 @@ | |||
30 | #ifdef RB_PROFILE | 30 | #ifdef RB_PROFILE |
31 | #include <profile.h> | 31 | #include <profile.h> |
32 | #endif | 32 | #endif |
33 | #include "gcc_extensions.h" | ||
34 | |||
33 | /**************************************************************************** | 35 | /**************************************************************************** |
34 | * ATTENTION!! * | 36 | * ATTENTION!! * |
35 | * See notes below on implementing processor-specific portions! * | 37 | * See notes below on implementing processor-specific portions! * |
@@ -163,7 +165,7 @@ static inline void load_context(const void* addr) | |||
163 | 165 | ||
164 | #if NUM_CORES > 1 | 166 | #if NUM_CORES > 1 |
165 | static void thread_final_exit_do(struct thread_entry *current) | 167 | static void thread_final_exit_do(struct thread_entry *current) |
166 | __attribute__((noinline, noreturn, used)); | 168 | __attribute__((noinline, noreturn)) USED_ATTR; |
167 | #else | 169 | #else |
168 | static inline void thread_final_exit(struct thread_entry *current) | 170 | static inline void thread_final_exit(struct thread_entry *current) |
169 | __attribute__((always_inline, noreturn)); | 171 | __attribute__((always_inline, noreturn)); |