Changeset 143696a in rtems


Ignore:
Timestamp:
10/16/15 06:15:03 (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
a3ba5b37
Parents:
2423857
git-author:
Sebastian Huber <sebastian.huber@…> (10/16/15 06:15:03)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/26/15 08:13:19)
Message:

basedefs.h: Add and use RTEMS_NO_RETURN

Files:
33 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/include/bootcard.h

    r2423857 r143696a  
    101101 * executed after RTEMS is initialized.
    102102 */
    103 void boot_card(const char *cmdline) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     103void boot_card(const char *cmdline) RTEMS_NO_RETURN;
    104104
    105105#ifdef CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK
  • c/src/lib/libbsp/shared/include/fatal.h

    r2423857 r143696a  
    121121} bsp_fatal_code;
    122122
    123 RTEMS_COMPILER_NO_RETURN_ATTRIBUTE static inline void
     123RTEMS_NO_RETURN static inline void
    124124bsp_fatal( bsp_fatal_code code )
    125125{
  • c/src/lib/libbsp/sparc/leon3/include/leon.h

    r2423857 r143696a  
    377377void bsp_debug_uart_init(void);
    378378
    379 void leon3_power_down_loop(void) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     379void leon3_power_down_loop(void) RTEMS_NO_RETURN;
    380380
    381381static inline uint32_t leon3_get_cpu_count(
  • cpukit/libcsupport/include/rtems/error.h

    r2423857 r143696a  
    131131  const char *printf_format,
    132132  ...
    133 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     133) RTEMS_NO_RETURN;
    134134
    135135extern int rtems_panic_in_progress;
  • cpukit/libmisc/stackchk/check.c

    r2423857 r143696a  
    224224  Thread_Control *running,
    225225  bool pattern_ok
    226 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     226) RTEMS_NO_RETURN;
    227227
    228228void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok)
  • cpukit/sapi/include/rtems/fatal.h

    r2423857 r143696a  
    1717#define _RTEMS_FATAL_H
    1818
    19 #include <rtems/score/basedefs.h> /* RTEMS_COMPILER_NO_RETURN_ATTRIBUTE */
     19#include <rtems/score/basedefs.h> /* RTEMS_NO_RETURN */
    2020#include <rtems/extension.h>
    2121
     
    7171void rtems_fatal_error_occurred(
    7272  uint32_t   the_error
    73 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     73) RTEMS_NO_RETURN;
    7474
    7575/**
     
    8484  rtems_fatal_source source,
    8585  rtems_fatal_code error
    86 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     86) RTEMS_NO_RETURN;
    8787
    8888/**
  • cpukit/sapi/include/rtems/init.h

    r2423857 r143696a  
    8787 */
    8888void rtems_initialize_start_multitasking(void)
    89   RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     89  RTEMS_NO_RETURN;
    9090
    9191/**
     
    100100void rtems_shutdown_executive(
    101101  uint32_t   result
    102 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     102) RTEMS_NO_RETURN;
    103103
    104104#ifdef __cplusplus
  • cpukit/score/cpu/arm/rtems/score/cpu.h

    r2423857 r143696a  
    490490
    491491void _CPU_Context_restore( Context_Control *new_context )
    492   RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     492  RTEMS_NO_RETURN;
    493493
    494494#if defined(ARM_MULTILIB_ARCH_V7M)
    495495  void _ARMV7M_Start_multitasking( Context_Control *heir )
    496     RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     496    RTEMS_NO_RETURN;
    497497  #define _CPU_Start_multitasking _ARMV7M_Start_multitasking
    498498#endif
  • cpukit/score/cpu/avr/rtems/score/cpu.h

    r2423857 r143696a  
    10671067void _CPU_Context_restore(
    10681068  Context_Control *new_context
    1069 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     1069) RTEMS_NO_RETURN;
    10701070
    10711071/*
  • cpukit/score/cpu/bfin/rtems/score/cpu.h

    r2423857 r143696a  
    11501150void _CPU_Context_restore(
    11511151  Context_Control *new_context
    1152 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     1152) RTEMS_NO_RETURN;
    11531153
    11541154/**
  • cpukit/score/cpu/epiphany/rtems/score/cpu.h

    r2423857 r143696a  
    949949void _CPU_Context_restore(
    950950  Context_Control *new_context
    951 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     951) RTEMS_NO_RETURN;
    952952
    953953/*
  • cpukit/score/cpu/h8300/rtems/score/cpu.h

    r2423857 r143696a  
    10611061void _CPU_Context_restore(
    10621062  Context_Control *new_context
    1063 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     1063) RTEMS_NO_RETURN;
    10641064
    10651065/*
  • cpukit/score/cpu/i386/rtems/score/cpu.h

    r2423857 r143696a  
    650650void _CPU_Context_restore(
    651651  Context_Control *new_context
    652 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     652) RTEMS_NO_RETURN;
    653653
    654654/*
  • cpukit/score/cpu/lm32/rtems/score/cpu.h

    r2423857 r143696a  
    11531153void _CPU_Context_restore(
    11541154  Context_Control *new_context
    1155 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     1155) RTEMS_NO_RETURN;
    11561156
    11571157/**
  • cpukit/score/cpu/m32c/rtems/score/cpu.h

    r2423857 r143696a  
    820820void _CPU_Context_Restart_self(
    821821  Context_Control  *the_context
    822 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     822) RTEMS_NO_RETURN;
    823823
    824824/**
     
    11371137void _CPU_Context_restore(
    11381138  Context_Control *new_context
    1139 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     1139) RTEMS_NO_RETURN;
    11401140
    11411141static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
  • cpukit/score/cpu/m32r/rtems/score/cpu.h

    r2423857 r143696a  
    841841void _CPU_Context_Restart_self(
    842842  Context_Control  *the_context
    843 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     843) RTEMS_NO_RETURN;
    844844
    845845/**
     
    11461146void _CPU_Context_restore(
    11471147  Context_Control *new_context
    1148 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     1148) RTEMS_NO_RETURN;
    11491149
    11501150/**
  • cpukit/score/cpu/m68k/rtems/score/cpu.h

    r2423857 r143696a  
    680680void _CPU_Context_Restart_self(
    681681  Context_Control  *the_context
    682 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     682) RTEMS_NO_RETURN;
    683683
    684684/*
  • cpukit/score/cpu/mips/rtems/score/cpu.h

    r2423857 r143696a  
    10841084void _CPU_Context_restore(
    10851085  Context_Control *new_context
    1086 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     1086) RTEMS_NO_RETURN;
    10871087
    10881088/*
  • cpukit/score/cpu/moxie/rtems/score/cpu.h

    r2423857 r143696a  
    939939void _CPU_Context_restore(
    940940  Context_Control *new_context
    941 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     941) RTEMS_NO_RETURN;
    942942
    943943/*
  • cpukit/score/cpu/nios2/rtems/score/cpu.h

    r2423857 r143696a  
    307307
    308308void _CPU_Fatal_halt( uint32_t _source, uint32_t _error )
    309   RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     309  RTEMS_NO_RETURN;
    310310
    311311/**
     
    336336void _CPU_Context_restore(
    337337  Context_Control *new_context
    338 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     338) RTEMS_NO_RETURN;
    339339
    340340void _CPU_Context_volatile_clobber( uintptr_t pattern );
  • cpukit/score/cpu/no_cpu/rtems/score/cpu.h

    r2423857 r143696a  
    13111311void _CPU_Context_restore(
    13121312  Context_Control *new_context
    1313 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     1313) RTEMS_NO_RETURN;
    13141314
    13151315/**
  • cpukit/score/cpu/or1k/rtems/score/cpu.h

    r2423857 r143696a  
    951951void _CPU_Context_restore(
    952952  Context_Control *new_context
    953 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     953) RTEMS_NO_RETURN;
    954954
    955955/*
  • cpukit/score/cpu/powerpc/rtems/score/cpu.h

    r2423857 r143696a  
    10711071void _CPU_Context_restore(
    10721072  Context_Control *new_context
    1073 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     1073) RTEMS_NO_RETURN;
    10741074
    10751075/*
  • cpukit/score/cpu/sh/rtems/score/cpu.h

    r2423857 r143696a  
    852852void _CPU_Context_restore(
    853853  Context_Control *new_context
    854 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     854) RTEMS_NO_RETURN;
    855855
    856856/*
  • cpukit/score/cpu/sparc/rtems/score/cpu.h

    r2423857 r143696a  
    11091109 */
    11101110extern void _CPU_Fatal_halt(uint32_t source, uint32_t error)
    1111   RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     1111  RTEMS_NO_RETURN;
    11121112
    11131113/* end of Fatal Error manager macros */
     
    11971197void _CPU_Context_restore(
    11981198  Context_Control *new_context
    1199 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     1199) RTEMS_NO_RETURN;
    12001200
    12011201/**
  • cpukit/score/cpu/sparc/rtems/score/sparc.h

    r2423857 r143696a  
    354354 */
    355355void sparc_syscall_exit(uint32_t exitcode1, uint32_t exitcode2)
    356   RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     356  RTEMS_NO_RETURN;
    357357
    358358/**
  • cpukit/score/cpu/sparc64/rtems/score/cpu.h

    r2423857 r143696a  
    977977void _CPU_Context_restore(
    978978  Context_Control *new_context
    979 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     979) RTEMS_NO_RETURN;
    980980
    981981/*
  • cpukit/score/cpu/v850/rtems/score/cpu.h

    r2423857 r143696a  
    10521052void _CPU_Context_restore(
    10531053  Context_Control *new_context
    1054 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     1054) RTEMS_NO_RETURN;
    10551055
    10561056/* XXX this should be possible to remove */
  • cpukit/score/include/rtems/score/assert.h

    r2423857 r143696a  
    6262
    6363    void __assert_func(const char *, int, const char *, const char *)
    64       RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     64      RTEMS_NO_RETURN;
    6565
    6666    #define _Assert( _e ) \
  • cpukit/score/include/rtems/score/basedefs.h

    r2423857 r143696a  
    155155 */
    156156#if defined(RTEMS_SCHEDSIM)
    157   #define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE
     157  #define RTEMS_NO_RETURN
    158158#elif defined(__GNUC__)
    159   #define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE \
    160       __attribute__ ((noreturn))
    161 #else
    162   #define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE
    163 #endif
     159  #define RTEMS_NO_RETURN __attribute__((__noreturn__))
     160#else
     161  #define RTEMS_NO_RETURN
     162#endif
     163
     164/* Provided for backward compatibility */
     165#define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE RTEMS_NO_RETURN
    164166
    165167/**
  • cpukit/score/include/rtems/score/interr.h

    r2423857 r143696a  
    229229  bool                    is_internal,
    230230  Internal_errors_t       the_error
    231 ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     231) RTEMS_NO_RETURN;
    232232
    233233#ifdef __cplusplus
  • cpukit/score/include/rtems/score/smpimpl.h

    r2423857 r143696a  
    116116 */
    117117void _SMP_Start_multitasking_on_secondary_processor( void )
    118   RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     118  RTEMS_NO_RETURN;
    119119
    120120typedef void ( *SMP_Test_message_handler )( Per_CPU_Control *cpu_self );
  • cpukit/score/include/rtems/score/threadimpl.h

    r2423857 r143696a  
    133133 *  the non-multitasking part of the system initialization.
    134134 */
    135 void _Thread_Start_multitasking( void ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     135void _Thread_Start_multitasking( void ) RTEMS_NO_RETURN;
    136136
    137137/**
Note: See TracChangeset for help on using the changeset viewer.