diff options
Diffstat (limited to 'cpukit/score/cpu/mips')
-rw-r--r-- | cpukit/score/cpu/mips/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/score/cpu/mips/rtems/score/cpu.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/score/cpu/mips/ChangeLog b/cpukit/score/cpu/mips/ChangeLog index 9fe41445b3..c70c105a31 100644 --- a/cpukit/score/cpu/mips/ChangeLog +++ b/cpukit/score/cpu/mips/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-07-30 Gedare Bloom <giddyup44@yahoo.com> PR 1599/cpukit diff --git a/cpukit/score/cpu/mips/rtems/score/cpu.h b/cpukit/score/cpu/mips/rtems/score/cpu.h index f0eb250d68..8d94aba5f6 100644 --- a/cpukit/score/cpu/mips/rtems/score/cpu.h +++ b/cpukit/score/cpu/mips/rtems/score/cpu.h @@ -1084,7 +1084,7 @@ void _CPU_Context_switch( void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /* * _CPU_Context_save_fp |