From 59e71ee80c65426b2f569cc4c60936053cc9caa5 Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Fri, 9 Dec 2011 15:33:59 +0000 Subject: Introduce USED_ATTR wrapper for __attribute__((used)). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31188 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/hosted/thread-arm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'firmware/target/hosted/thread-arm.c') diff --git a/firmware/target/hosted/thread-arm.c b/firmware/target/hosted/thread-arm.c index d2fa7d1e5d..f8e58c031c 100644 --- a/firmware/target/hosted/thread-arm.c +++ b/firmware/target/hosted/thread-arm.c @@ -23,11 +23,13 @@ ****************************************************************************/ #include +#include "gcc_extensions.h" + /*--------------------------------------------------------------------------- * Start the thread running and terminate it if it returns *--------------------------------------------------------------------------- */ -static void __attribute__((naked,used)) start_thread(void) +static void __attribute__((naked)) USED_ATTR start_thread(void) { /* r0 = context */ asm volatile ( -- cgit v1.2.3