diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-04-14 16:05:04 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-05-30 15:07:39 -0500 |
commit | 8e7db68c38a87971967c7dde06e84067b3e56c17 (patch) | |
tree | ce9f0970c901ccb44115656be9d1814465be4574 /cpukit/score/include/rtems/score/basedefs.h | |
parent | bsps/gdbarmsim: Add the missing bspstarthooks.c. (diff) | |
download | rtems-8e7db68c38a87971967c7dde06e84067b3e56c17.tar.bz2 |
Minor conditionals to enable building Scheduler Simulator on GNU/Linux
- rtems/score/assert.h: Scheduler Simulator uses glibc assert.h on GNU/Linux.
This will likely need to be adjusted more for other host compilers and
C libraries. Also disable _Assert_Not_reached() because some of these
paths do actually return to the called on the Scheduler Simulator.
- basedefs.h: Do not use noreturn attribute when on Scheduler Simulator.
Paths which context switch can return to the command interpreter on
the Scheduler Simulator.
Diffstat (limited to 'cpukit/score/include/rtems/score/basedefs.h')
-rw-r--r-- | cpukit/score/include/rtems/score/basedefs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h index a0bebddc0e..382a97ac10 100644 --- a/cpukit/score/include/rtems/score/basedefs.h +++ b/cpukit/score/include/rtems/score/basedefs.h @@ -153,7 +153,9 @@ * can impact the code generated following calls to * rtems_fatal_error_occurred and _Terminate. */ -#ifdef __GNUC__ +#if defined(RTEMS_SCHEDSIM) + #define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE +#elif defined(__GNUC__) #define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE \ __attribute__ ((noreturn)) #else |