[PATCH 2/6] basedefs.h: Add and use RTEMS_NO_RETURN
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Oct 16 06:59:31 UTC 2015
---
c/src/lib/libbsp/shared/include/bootcard.h | 2 +-
c/src/lib/libbsp/shared/include/fatal.h | 2 +-
c/src/lib/libbsp/sparc/leon3/include/leon.h | 2 +-
cpukit/libcsupport/include/rtems/error.h | 2 +-
cpukit/libmisc/stackchk/check.c | 2 +-
cpukit/sapi/include/rtems/fatal.h | 6 +++---
cpukit/sapi/include/rtems/init.h | 4 ++--
cpukit/score/cpu/arm/rtems/score/cpu.h | 4 ++--
cpukit/score/cpu/avr/rtems/score/cpu.h | 2 +-
cpukit/score/cpu/bfin/rtems/score/cpu.h | 2 +-
cpukit/score/cpu/epiphany/rtems/score/cpu.h | 2 +-
cpukit/score/cpu/h8300/rtems/score/cpu.h | 2 +-
cpukit/score/cpu/i386/rtems/score/cpu.h | 2 +-
cpukit/score/cpu/lm32/rtems/score/cpu.h | 2 +-
cpukit/score/cpu/m32c/rtems/score/cpu.h | 4 ++--
cpukit/score/cpu/m32r/rtems/score/cpu.h | 4 ++--
cpukit/score/cpu/m68k/rtems/score/cpu.h | 2 +-
cpukit/score/cpu/mips/rtems/score/cpu.h | 2 +-
cpukit/score/cpu/moxie/rtems/score/cpu.h | 2 +-
cpukit/score/cpu/nios2/rtems/score/cpu.h | 4 ++--
cpukit/score/cpu/no_cpu/rtems/score/cpu.h | 2 +-
cpukit/score/cpu/or1k/rtems/score/cpu.h | 2 +-
cpukit/score/cpu/powerpc/rtems/score/cpu.h | 2 +-
cpukit/score/cpu/sh/rtems/score/cpu.h | 2 +-
cpukit/score/cpu/sparc/rtems/score/cpu.h | 4 ++--
cpukit/score/cpu/sparc/rtems/score/sparc.h | 2 +-
cpukit/score/cpu/sparc64/rtems/score/cpu.h | 2 +-
cpukit/score/cpu/v850/rtems/score/cpu.h | 2 +-
cpukit/score/include/rtems/score/assert.h | 2 +-
cpukit/score/include/rtems/score/basedefs.h | 10 ++++++----
cpukit/score/include/rtems/score/interr.h | 2 +-
cpukit/score/include/rtems/score/smpimpl.h | 2 +-
cpukit/score/include/rtems/score/threadimpl.h | 2 +-
33 files changed, 46 insertions(+), 44 deletions(-)
diff --git a/c/src/lib/libbsp/shared/include/bootcard.h b/c/src/lib/libbsp/shared/include/bootcard.h
index c394602..53a1844 100644
--- a/c/src/lib/libbsp/shared/include/bootcard.h
+++ b/c/src/lib/libbsp/shared/include/bootcard.h
@@ -100,7 +100,7 @@ void bsp_reset(void);
* This style of initialization ensures that the C++ global constructors are
* executed after RTEMS is initialized.
*/
-void boot_card(const char *cmdline) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+void boot_card(const char *cmdline) RTEMS_NO_RETURN;
#ifdef CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK
/**
diff --git a/c/src/lib/libbsp/shared/include/fatal.h b/c/src/lib/libbsp/shared/include/fatal.h
index 45db9d4..fe8e14e9 100644
--- a/c/src/lib/libbsp/shared/include/fatal.h
+++ b/c/src/lib/libbsp/shared/include/fatal.h
@@ -117,7 +117,7 @@ typedef enum {
QORIQ_FATAL_SMP_IPI_HANDLER_INSTALL = BSP_FATAL_CODE_BLOCK(10)
} bsp_fatal_code;
-RTEMS_COMPILER_NO_RETURN_ATTRIBUTE static inline void
+RTEMS_NO_RETURN static inline void
bsp_fatal( bsp_fatal_code code )
{
rtems_fatal( RTEMS_FATAL_SOURCE_BSP, (rtems_fatal_code) code );
diff --git a/c/src/lib/libbsp/sparc/leon3/include/leon.h b/c/src/lib/libbsp/sparc/leon3/include/leon.h
index 8ad8a18..5ac1d71 100644
--- a/c/src/lib/libbsp/sparc/leon3/include/leon.h
+++ b/c/src/lib/libbsp/sparc/leon3/include/leon.h
@@ -376,7 +376,7 @@ void leon3_ext_irq_init(void);
void bsp_debug_uart_init(void);
-void leon3_power_down_loop(void) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+void leon3_power_down_loop(void) RTEMS_NO_RETURN;
static inline uint32_t leon3_get_cpu_count(
volatile struct irqmp_regs *irqmp
diff --git a/cpukit/libcsupport/include/rtems/error.h b/cpukit/libcsupport/include/rtems/error.h
index c81cc66..f72d78c 100644
--- a/cpukit/libcsupport/include/rtems/error.h
+++ b/cpukit/libcsupport/include/rtems/error.h
@@ -130,7 +130,7 @@ int rtems_verror(
void rtems_panic(
const char *printf_format,
...
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
extern int rtems_panic_in_progress;
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c
index dd64968..a442798 100644
--- a/cpukit/libmisc/stackchk/check.c
+++ b/cpukit/libmisc/stackchk/check.c
@@ -223,7 +223,7 @@ void rtems_stack_checker_begin_extension(
void Stack_check_report_blown_task(
Thread_Control *running,
bool pattern_ok
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok)
{
diff --git a/cpukit/sapi/include/rtems/fatal.h b/cpukit/sapi/include/rtems/fatal.h
index 6e5986a..b4b3b0f 100644
--- a/cpukit/sapi/include/rtems/fatal.h
+++ b/cpukit/sapi/include/rtems/fatal.h
@@ -16,7 +16,7 @@
#ifndef _RTEMS_FATAL_H
#define _RTEMS_FATAL_H
-#include <rtems/score/basedefs.h> /* RTEMS_COMPILER_NO_RETURN_ATTRIBUTE */
+#include <rtems/score/basedefs.h> /* RTEMS_NO_RETURN */
#include <rtems/extension.h>
#ifdef __cplusplus
@@ -70,7 +70,7 @@ static inline void rtems_exception_frame_print(
*/
void rtems_fatal_error_occurred(
uint32_t the_error
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/**
* @brief Invokes the internal error handler with is internal set to false.
@@ -83,7 +83,7 @@ void rtems_fatal_error_occurred(
void rtems_fatal(
rtems_fatal_source source,
rtems_fatal_code error
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/**
* @brief Returns a text for a fatal source.
diff --git a/cpukit/sapi/include/rtems/init.h b/cpukit/sapi/include/rtems/init.h
index 8ddad26..ccb6ecd 100644
--- a/cpukit/sapi/include/rtems/init.h
+++ b/cpukit/sapi/include/rtems/init.h
@@ -86,7 +86,7 @@ void rtems_initialize_device_drivers(void);
* This directive does not return.
*/
void rtems_initialize_start_multitasking(void)
- RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+ RTEMS_NO_RETURN;
/**
* @brief Shutdown the RTEMS environment.
@@ -99,7 +99,7 @@ void rtems_initialize_start_multitasking(void)
*/
void rtems_shutdown_executive(
uint32_t result
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
#ifdef __cplusplus
}
diff --git a/cpukit/score/cpu/arm/rtems/score/cpu.h b/cpukit/score/cpu/arm/rtems/score/cpu.h
index 6ed6ef9..ae33b57 100644
--- a/cpukit/score/cpu/arm/rtems/score/cpu.h
+++ b/cpukit/score/cpu/arm/rtems/score/cpu.h
@@ -489,11 +489,11 @@ void _CPU_ISR_install_vector(
void _CPU_Context_switch( Context_Control *run, Context_Control *heir );
void _CPU_Context_restore( Context_Control *new_context )
- RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+ RTEMS_NO_RETURN;
#if defined(ARM_MULTILIB_ARCH_V7M)
void _ARMV7M_Start_multitasking( Context_Control *heir )
- RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+ RTEMS_NO_RETURN;
#define _CPU_Start_multitasking _ARMV7M_Start_multitasking
#endif
diff --git a/cpukit/score/cpu/avr/rtems/score/cpu.h b/cpukit/score/cpu/avr/rtems/score/cpu.h
index fc5cc59..f3baec4 100644
--- a/cpukit/score/cpu/avr/rtems/score/cpu.h
+++ b/cpukit/score/cpu/avr/rtems/score/cpu.h
@@ -1066,7 +1066,7 @@ void _CPU_Context_switch(
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/*
* _CPU_Context_save_fp
diff --git a/cpukit/score/cpu/bfin/rtems/score/cpu.h b/cpukit/score/cpu/bfin/rtems/score/cpu.h
index 52fb3f8..ebcfe1e 100644
--- a/cpukit/score/cpu/bfin/rtems/score/cpu.h
+++ b/cpukit/score/cpu/bfin/rtems/score/cpu.h
@@ -1149,7 +1149,7 @@ void _CPU_Context_switch(
*/
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/**
* This routine saves the floating point context passed to it.
diff --git a/cpukit/score/cpu/epiphany/rtems/score/cpu.h b/cpukit/score/cpu/epiphany/rtems/score/cpu.h
index e0c5682..d0cbb64 100644
--- a/cpukit/score/cpu/epiphany/rtems/score/cpu.h
+++ b/cpukit/score/cpu/epiphany/rtems/score/cpu.h
@@ -948,7 +948,7 @@ void _CPU_Context_switch(
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/*
* _CPU_Context_save_fp
diff --git a/cpukit/score/cpu/h8300/rtems/score/cpu.h b/cpukit/score/cpu/h8300/rtems/score/cpu.h
index 56b3fdb..8b34bb4 100644
--- a/cpukit/score/cpu/h8300/rtems/score/cpu.h
+++ b/cpukit/score/cpu/h8300/rtems/score/cpu.h
@@ -1060,7 +1060,7 @@ void _CPU_Context_switch(
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/*
* _CPU_Context_save_fp
diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h b/cpukit/score/cpu/i386/rtems/score/cpu.h
index 96cea5a..4f0cd6e 100644
--- a/cpukit/score/cpu/i386/rtems/score/cpu.h
+++ b/cpukit/score/cpu/i386/rtems/score/cpu.h
@@ -649,7 +649,7 @@ void _CPU_Context_switch(
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/*
* _CPU_Context_save_fp
diff --git a/cpukit/score/cpu/lm32/rtems/score/cpu.h b/cpukit/score/cpu/lm32/rtems/score/cpu.h
index 4cd07ba..e783331 100644
--- a/cpukit/score/cpu/lm32/rtems/score/cpu.h
+++ b/cpukit/score/cpu/lm32/rtems/score/cpu.h
@@ -1152,7 +1152,7 @@ void _CPU_Context_switch(
*/
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/**
* This routine saves the floating point context passed to it.
diff --git a/cpukit/score/cpu/m32c/rtems/score/cpu.h b/cpukit/score/cpu/m32c/rtems/score/cpu.h
index 6ca7972..fdee572 100644
--- a/cpukit/score/cpu/m32c/rtems/score/cpu.h
+++ b/cpukit/score/cpu/m32c/rtems/score/cpu.h
@@ -819,7 +819,7 @@ void _CPU_Context_Initialize(
*/
void _CPU_Context_Restart_self(
Context_Control *the_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/**
* @ingroup CPUContext
@@ -1136,7 +1136,7 @@ void _CPU_Context_switch(
*/
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
{
diff --git a/cpukit/score/cpu/m32r/rtems/score/cpu.h b/cpukit/score/cpu/m32r/rtems/score/cpu.h
index 311578db..9ad41cd 100644
--- a/cpukit/score/cpu/m32r/rtems/score/cpu.h
+++ b/cpukit/score/cpu/m32r/rtems/score/cpu.h
@@ -840,7 +840,7 @@ void _CPU_Context_Initialize(
*/
void _CPU_Context_Restart_self(
Context_Control *the_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/**
* @ingroup CPUContext
@@ -1145,7 +1145,7 @@ void _CPU_Context_switch(
*/
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/**
* This routine saves the floating point context passed to it.
diff --git a/cpukit/score/cpu/m68k/rtems/score/cpu.h b/cpukit/score/cpu/m68k/rtems/score/cpu.h
index 913bb78..7fcbac5 100644
--- a/cpukit/score/cpu/m68k/rtems/score/cpu.h
+++ b/cpukit/score/cpu/m68k/rtems/score/cpu.h
@@ -679,7 +679,7 @@ void _CPU_Context_switch(
void _CPU_Context_Restart_self(
Context_Control *the_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/*
* _CPU_Context_save_fp
diff --git a/cpukit/score/cpu/mips/rtems/score/cpu.h b/cpukit/score/cpu/mips/rtems/score/cpu.h
index 4e426f8..ac589d2 100644
--- a/cpukit/score/cpu/mips/rtems/score/cpu.h
+++ b/cpukit/score/cpu/mips/rtems/score/cpu.h
@@ -1083,7 +1083,7 @@ void _CPU_Context_switch(
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/*
* _CPU_Context_save_fp
diff --git a/cpukit/score/cpu/moxie/rtems/score/cpu.h b/cpukit/score/cpu/moxie/rtems/score/cpu.h
index 3422d02..297316b 100644
--- a/cpukit/score/cpu/moxie/rtems/score/cpu.h
+++ b/cpukit/score/cpu/moxie/rtems/score/cpu.h
@@ -938,7 +938,7 @@ void _CPU_Context_switch(
*/
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/*
* _CPU_Context_save_fp
diff --git a/cpukit/score/cpu/nios2/rtems/score/cpu.h b/cpukit/score/cpu/nios2/rtems/score/cpu.h
index d9a7bbd..fdb9d8a 100644
--- a/cpukit/score/cpu/nios2/rtems/score/cpu.h
+++ b/cpukit/score/cpu/nios2/rtems/score/cpu.h
@@ -306,7 +306,7 @@ void _CPU_Context_Initialize(
_CPU_Context_restore( (_the_context) );
void _CPU_Fatal_halt( uint32_t _source, uint32_t _error )
- RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+ RTEMS_NO_RETURN;
/**
* @brief CPU initialization.
@@ -335,7 +335,7 @@ void _CPU_Context_switch( Context_Control *run, Context_Control *heir );
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
void _CPU_Context_volatile_clobber( uintptr_t pattern );
diff --git a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h
index 3755709..49b2d65 100644
--- a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h
+++ b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h
@@ -1310,7 +1310,7 @@ void _CPU_Context_switch(
*/
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/**
* @ingroup CPUContext
diff --git a/cpukit/score/cpu/or1k/rtems/score/cpu.h b/cpukit/score/cpu/or1k/rtems/score/cpu.h
index 21cbb6d..7d07de3 100644
--- a/cpukit/score/cpu/or1k/rtems/score/cpu.h
+++ b/cpukit/score/cpu/or1k/rtems/score/cpu.h
@@ -950,7 +950,7 @@ void _CPU_Context_switch(
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/*
* _CPU_Context_save_fp
diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
index 7fef878..c30b9dc 100644
--- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
@@ -1070,7 +1070,7 @@ void _CPU_Context_switch(
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/*
* _CPU_Context_save_fp
diff --git a/cpukit/score/cpu/sh/rtems/score/cpu.h b/cpukit/score/cpu/sh/rtems/score/cpu.h
index 76220f7..6ae0a83 100644
--- a/cpukit/score/cpu/sh/rtems/score/cpu.h
+++ b/cpukit/score/cpu/sh/rtems/score/cpu.h
@@ -851,7 +851,7 @@ void _CPU_Context_switch(
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/*
* @brief This routine saves the floating point context passed to it.
diff --git a/cpukit/score/cpu/sparc/rtems/score/cpu.h b/cpukit/score/cpu/sparc/rtems/score/cpu.h
index d358465..b73a56e 100644
--- a/cpukit/score/cpu/sparc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/sparc/rtems/score/cpu.h
@@ -1108,7 +1108,7 @@ void _CPU_Context_Initialize(
* halts/stops the CPU.
*/
extern void _CPU_Fatal_halt(uint32_t source, uint32_t error)
- RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+ RTEMS_NO_RETURN;
/* end of Fatal Error manager macros */
@@ -1196,7 +1196,7 @@ void _CPU_Context_switch(
*/
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/**
* @brief The pointer to the current per-CPU control is available via register
diff --git a/cpukit/score/cpu/sparc/rtems/score/sparc.h b/cpukit/score/cpu/sparc/rtems/score/sparc.h
index 45df6ff..ecac74d 100644
--- a/cpukit/score/cpu/sparc/rtems/score/sparc.h
+++ b/cpukit/score/cpu/sparc/rtems/score/sparc.h
@@ -353,7 +353,7 @@ static inline void sparc_enable_interrupts(uint32_t psr)
* @param[in] exitcode2 Primary exit code stored in CPU g3 register after exit
*/
void sparc_syscall_exit(uint32_t exitcode1, uint32_t exitcode2)
- RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+ RTEMS_NO_RETURN;
/**
* @brief SPARC flash processor interrupts.
diff --git a/cpukit/score/cpu/sparc64/rtems/score/cpu.h b/cpukit/score/cpu/sparc64/rtems/score/cpu.h
index 37e8325..ff56c71 100644
--- a/cpukit/score/cpu/sparc64/rtems/score/cpu.h
+++ b/cpukit/score/cpu/sparc64/rtems/score/cpu.h
@@ -976,7 +976,7 @@ void _CPU_Context_switch(
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/*
* _CPU_Context_save_fp
diff --git a/cpukit/score/cpu/v850/rtems/score/cpu.h b/cpukit/score/cpu/v850/rtems/score/cpu.h
index 9725900..c531d0c 100644
--- a/cpukit/score/cpu/v850/rtems/score/cpu.h
+++ b/cpukit/score/cpu/v850/rtems/score/cpu.h
@@ -1051,7 +1051,7 @@ void _CPU_Context_switch(
*/
void _CPU_Context_restore(
Context_Control *new_context
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
/* XXX this should be possible to remove */
#if 0
diff --git a/cpukit/score/include/rtems/score/assert.h b/cpukit/score/include/rtems/score/assert.h
index 6308378..d4253f8 100644
--- a/cpukit/score/include/rtems/score/assert.h
+++ b/cpukit/score/include/rtems/score/assert.h
@@ -61,7 +61,7 @@ extern "C" {
/* normal build is newlib. */
void __assert_func(const char *, int, const char *, const char *)
- RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+ RTEMS_NO_RETURN;
#define _Assert( _e ) \
( ( _e ) ? \
diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h
index 8e145f5..5575a06 100644
--- a/cpukit/score/include/rtems/score/basedefs.h
+++ b/cpukit/score/include/rtems/score/basedefs.h
@@ -154,14 +154,16 @@
* rtems_fatal_error_occurred and _Terminate.
*/
#if defined(RTEMS_SCHEDSIM)
- #define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE
+ #define RTEMS_NO_RETURN
#elif defined(__GNUC__)
- #define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE \
- __attribute__ ((noreturn))
+ #define RTEMS_NO_RETURN __attribute__((__noreturn__))
#else
- #define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE
+ #define RTEMS_NO_RETURN
#endif
+/* Provided for backward compatibility */
+#define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE RTEMS_NO_RETURN
+
/**
* The following defines a compiler specific attribute which informs
* the compiler that the method has no effect except the return value
diff --git a/cpukit/score/include/rtems/score/interr.h b/cpukit/score/include/rtems/score/interr.h
index 988a00d..f09d6e9 100644
--- a/cpukit/score/include/rtems/score/interr.h
+++ b/cpukit/score/include/rtems/score/interr.h
@@ -228,7 +228,7 @@ void _Terminate(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
-) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+) RTEMS_NO_RETURN;
#ifdef __cplusplus
}
diff --git a/cpukit/score/include/rtems/score/smpimpl.h b/cpukit/score/include/rtems/score/smpimpl.h
index 3167e82..09c47ec 100644
--- a/cpukit/score/include/rtems/score/smpimpl.h
+++ b/cpukit/score/include/rtems/score/smpimpl.h
@@ -115,7 +115,7 @@ static inline void _SMP_Fatal( SMP_Fatal_code code )
* This function does not return to the caller.
*/
void _SMP_Start_multitasking_on_secondary_processor( void )
- RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+ RTEMS_NO_RETURN;
typedef void ( *SMP_Test_message_handler )( Per_CPU_Control *cpu_self );
diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h
index 7412bd9..906bdb1 100644
--- a/cpukit/score/include/rtems/score/threadimpl.h
+++ b/cpukit/score/include/rtems/score/threadimpl.h
@@ -132,7 +132,7 @@ void _Thread_Create_idle(void);
* part of initialization and its invocation is the last act of
* the non-multitasking part of the system initialization.
*/
-void _Thread_Start_multitasking( void ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+void _Thread_Start_multitasking( void ) RTEMS_NO_RETURN;
/**
* @brief Allocate the requested stack space for the thread.
--
1.8.4.5
More information about the devel
mailing list