diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-10-21 22:18:05 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-10-21 22:18:05 +0000 |
commit | 479cbaf81d905ac8c91983781783010a54a22282 (patch) | |
tree | c21ea3a4428ec4ba943217184569fe8f08cbbe90 /cpukit/score/cpu/m32r | |
parent | 2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-479cbaf81d905ac8c91983781783010a54a22282.tar.bz2 |
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.
Diffstat (limited to 'cpukit/score/cpu/m32r')
-rw-r--r-- | cpukit/score/cpu/m32r/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/score/cpu/m32r/rtems/score/cpu.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/score/cpu/m32r/ChangeLog b/cpukit/score/cpu/m32r/ChangeLog index 146721e720..aa584ae9e5 100644 --- a/cpukit/score/cpu/m32r/ChangeLog +++ b/cpukit/score/cpu/m32r/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/m32r/rtems/score/cpu.h b/cpukit/score/cpu/m32r/rtems/score/cpu.h index 431cc1dab1..4cbb3e99d2 100644 --- a/cpukit/score/cpu/m32r/rtems/score/cpu.h +++ b/cpukit/score/cpu/m32r/rtems/score/cpu.h @@ -1149,7 +1149,7 @@ void _CPU_Context_switch( */ void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /** * @ingroup CPUContext |