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/sh/rtems/score/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/score/cpu/sh/rtems/score/cpu.h') diff --git a/cpukit/score/cpu/sh/rtems/score/cpu.h b/cpukit/score/cpu/sh/rtems/score/cpu.h index 4e5167517c..3fe51b7792 100644 --- a/cpukit/score/cpu/sh/rtems/score/cpu.h +++ b/cpukit/score/cpu/sh/rtems/score/cpu.h @@ -861,7 +861,7 @@ void _CPU_Context_switch( void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /* * _CPU_Context_save_fp -- cgit v1.2.3