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/arm/thread-pp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'firmware/target/arm/thread-pp.c') diff --git a/firmware/target/arm/thread-pp.c b/firmware/target/arm/thread-pp.c index 3eb7238a25..5e834bc6ad 100644 --- a/firmware/target/arm/thread-pp.c +++ b/firmware/target/arm/thread-pp.c @@ -21,6 +21,8 @@ * ****************************************************************************/ +#include "gcc_extensions.h" + #if defined(MAX_PHYS_SECTOR_SIZE) && MEMORYSIZE == 64 /* Support a special workaround object for large-sector disks */ #define IF_NO_SKIP_YIELD(...) __VA_ARGS__ @@ -546,7 +548,7 @@ void core_wake(unsigned int othercore) #endif /* CPU_PPxxxx */ /* Keep constant pool in range of inline ASM */ -static void __attribute__((naked, used)) dump_ltorg(void) +static void __attribute__((naked)) USED_ATTR dump_ltorg(void) { asm volatile (".ltorg"); } -- cgit v1.2.3