summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/h8300
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/h8300
parent8e9a25ac02292bd74e9889800784e55f55fced25 (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/h8300')
-rw-r--r--cpukit/score/cpu/h8300/ChangeLog6
-rw-r--r--cpukit/score/cpu/h8300/rtems/score/cpu.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/score/cpu/h8300/ChangeLog b/cpukit/score/cpu/h8300/ChangeLog
index aba5af5bf4..85182b48c2 100644
--- a/cpukit/score/cpu/h8300/ChangeLog
+++ b/cpukit/score/cpu/h8300/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-29 Gedare Bloom <giddyup44@yahoo.com>
PR 1635/cpukit
diff --git a/cpukit/score/cpu/h8300/rtems/score/cpu.h b/cpukit/score/cpu/h8300/rtems/score/cpu.h
index 82f3e40355..1a5a66afa6 100644
--- a/cpukit/score/cpu/h8300/rtems/score/cpu.h
+++ b/cpukit/score/cpu/h8300/rtems/score/cpu.h
@@ -1059,7 +1059,7 @@ void _CPU_Context_switch(
void _CPU_Context_restore(
Context_Control *new_context
-);
+) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
/*
* _CPU_Context_save_fp