From 479cbaf81d905ac8c91983781783010a54a22282 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 21 Oct 2010 22:18:05 +0000 Subject: 2010-10-21 Joel Sherrill * 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. --- cpukit/score/cpu/nios2/ChangeLog | 6 ++++++ cpukit/score/cpu/nios2/rtems/score/cpu.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'cpukit/score/cpu/nios2') diff --git a/cpukit/score/cpu/nios2/ChangeLog b/cpukit/score/cpu/nios2/ChangeLog index 3b2f03c622..eb2c8c9837 100644 --- a/cpukit/score/cpu/nios2/ChangeLog +++ b/cpukit/score/cpu/nios2/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Joel Sherrill + + * 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 PR 1599/cpukit diff --git a/cpukit/score/cpu/nios2/rtems/score/cpu.h b/cpukit/score/cpu/nios2/rtems/score/cpu.h index b08a9b67ed..810671bb73 100644 --- a/cpukit/score/cpu/nios2/rtems/score/cpu.h +++ b/cpukit/score/cpu/nios2/rtems/score/cpu.h @@ -1212,7 +1212,7 @@ void _CPU_Context_switch( */ void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /** * @ingroup CPUContext -- cgit v1.2.3