diff options
Diffstat (limited to 'firmware/target/coldfire')
-rw-r--r-- | firmware/target/coldfire/system-coldfire.c | 2 | ||||
-rw-r--r-- | firmware/target/coldfire/thread-coldfire.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/firmware/target/coldfire/system-coldfire.c b/firmware/target/coldfire/system-coldfire.c index 1fbd00825a..bc8c78b860 100644 --- a/firmware/target/coldfire/system-coldfire.c +++ b/firmware/target/coldfire/system-coldfire.c @@ -171,7 +171,7 @@ default_interrupt (ADC); /* A/D converter */ #endif static void system_display_exception_info(unsigned long format, - unsigned long pc) __attribute__ ((noreturn, used)); + unsigned long pc) __attribute__ ((noreturn)) USED_ATTR; static void system_display_exception_info(unsigned long format, unsigned long pc) { diff --git a/firmware/target/coldfire/thread-coldfire.c b/firmware/target/coldfire/thread-coldfire.c index c94580a4e7..d328e4af9a 100644 --- a/firmware/target/coldfire/thread-coldfire.c +++ b/firmware/target/coldfire/thread-coldfire.c @@ -21,12 +21,14 @@ * ****************************************************************************/ +#include "gcc_extensions.h" + /*--------------------------------------------------------------------------- * Start the thread running and terminate it if it returns *--------------------------------------------------------------------------- */ void start_thread(void); /* Provide C access to ASM label */ -static void __attribute__((used)) __start_thread(void) +static void USED_ATTR __start_thread(void) { /* a0=macsr, a1=context */ asm volatile ( |