summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/avr
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-10-21 22:18:05 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-10-21 22:18:05 +0000
commit479cbaf81d905ac8c91983781783010a54a22282 (patch)
treec21ea3a4428ec4ba943217184569fe8f08cbbe90 /cpukit/score/cpu/avr
parent2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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/avr')
-rw-r--r--cpukit/score/cpu/avr/ChangeLog6
-rw-r--r--cpukit/score/cpu/avr/rtems/score/cpu.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/cpukit/score/cpu/avr/ChangeLog b/cpukit/score/cpu/avr/ChangeLog
index 89a05488eb..54414b4b7d 100644
--- a/cpukit/score/cpu/avr/ChangeLog
+++ b/cpukit/score/cpu/avr/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/avr/rtems/score/cpu.h b/cpukit/score/cpu/avr/rtems/score/cpu.h
index 89c39aa161..688c407445 100644
--- a/cpukit/score/cpu/avr/rtems/score/cpu.h
+++ b/cpukit/score/cpu/avr/rtems/score/cpu.h
@@ -745,7 +745,7 @@ uint32_t _CPU_ISR_Get_level( void );
* XXX document implementation including references if appropriate
*/
-#define _CPU_Context_Restart_self( _the_context ) \
+#define eCPU_Context_Restart_self( _the_context ) \
_CPU_Context_restore( _the_context );
/*
@@ -1081,7 +1081,7 @@ void _CPU_Context_switch(
void _CPU_Context_restore(
Context_Control *new_context
-);
+) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
/*
* _CPU_Context_save_fp