diff options
Diffstat (limited to 'cpukit/score/cpu/lm32')
-rw-r--r-- | cpukit/score/cpu/lm32/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/score/cpu/lm32/rtems/score/cpu.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/score/cpu/lm32/ChangeLog b/cpukit/score/cpu/lm32/ChangeLog index bd1440e24e..318ca790f6 100644 --- a/cpukit/score/cpu/lm32/ChangeLog +++ b/cpukit/score/cpu/lm32/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com> + + * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to + _CPU_Context_restore() because it does not return. Telling GCC this + avoids generation of dead code. + 2010-09-26 Yann Sionneau <yann@minet.net> PR 1697/cpukit diff --git a/cpukit/score/cpu/lm32/rtems/score/cpu.h b/cpukit/score/cpu/lm32/rtems/score/cpu.h index 772f70d9a9..26a47f1266 100644 --- a/cpukit/score/cpu/lm32/rtems/score/cpu.h +++ b/cpukit/score/cpu/lm32/rtems/score/cpu.h @@ -1168,7 +1168,7 @@ void _CPU_Context_switch( */ void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /** * @ingroup CPUContext |