From db0df7b6df2415f3f218f9a893ac2d30d7e0b04a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 19 Aug 2009 16:39:05 +0000 Subject: 2009-08-19 Joel Sherrill * rtems/score/cpu.h: Mark _CPU_Context_restore() as noreturn so the compiler will not generate code thinking it returns. --- cpukit/score/cpu/arm/ChangeLog | 5 +++++ cpukit/score/cpu/arm/rtems/score/cpu.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'cpukit/score/cpu/arm') diff --git a/cpukit/score/cpu/arm/ChangeLog b/cpukit/score/cpu/arm/ChangeLog index 04f9784fef..591cb2b4ff 100644 --- a/cpukit/score/cpu/arm/ChangeLog +++ b/cpukit/score/cpu/arm/ChangeLog @@ -1,3 +1,8 @@ +2009-08-19 Joel Sherrill + + * rtems/score/cpu.h: Mark _CPU_Context_restore() as noreturn so the + compiler will not generate code thinking it returns. + 2009-07-15 Sebastian Huber * arm_exc_handler_high.c, arm_exc_handler_low.S, arm_exc_interrupt.S: diff --git a/cpukit/score/cpu/arm/rtems/score/cpu.h b/cpukit/score/cpu/arm/rtems/score/cpu.h index cd81a1c5e5..084b41a603 100644 --- a/cpukit/score/cpu/arm/rtems/score/cpu.h +++ b/cpukit/score/cpu/arm/rtems/score/cpu.h @@ -361,7 +361,8 @@ void _CPU_Install_interrupt_stack( void ); void _CPU_Context_switch( Context_Control *run, Context_Control *heir ); -void _CPU_Context_restore( Context_Control *new_context ); +void _CPU_Context_restore( Context_Control *new_context ) + RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; void _CPU_Context_save_fp( Context_Control_fp **fp_context_ptr ); -- cgit v1.2.3