diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-30 16:58:50 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-05-02 18:41:26 +0200 |
commit | 1eb6cdde60d702cb7a05927842a1752c133d9927 (patch) | |
tree | f24323e68a85492b3043d9ec56422255a4185457 /cpukit/posix/src/pthreadexit.c | |
parent | spmisc01: Test RTEMS_NOINIT (diff) | |
download | rtems-1eb6cdde60d702cb7a05927842a1752c133d9927.tar.bz2 |
score: Add _Thread_Dispatch_direct_no_return()
The __builtin_unreachable() cannot be used with current GCC versions to
tell the compiler that a function does not return to the caller, see:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99151
Add a no return variant of _Thread_Dispatch_direct() to avoid generation
of dead code.
Diffstat (limited to 'cpukit/posix/src/pthreadexit.c')
-rw-r--r-- | cpukit/posix/src/pthreadexit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/pthreadexit.c b/cpukit/posix/src/pthreadexit.c index 502476d141..657497010b 100644 --- a/cpukit/posix/src/pthreadexit.c +++ b/cpukit/posix/src/pthreadexit.c @@ -35,6 +35,6 @@ void pthread_exit( void *value_ptr ) _Thread_Exit( executing, THREAD_LIFE_TERMINATING, value_ptr ); - _Thread_Dispatch_direct( cpu_self ); + _Thread_Dispatch_direct_no_return( cpu_self ); RTEMS_UNREACHABLE(); } |