From 1eb6cdde60d702cb7a05927842a1752c133d9927 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 30 Apr 2021 16:58:50 +0200 Subject: 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. --- cpukit/rtems/src/taskexit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/rtems') diff --git a/cpukit/rtems/src/taskexit.c b/cpukit/rtems/src/taskexit.c index c08089e956..4c8420d255 100644 --- a/cpukit/rtems/src/taskexit.c +++ b/cpukit/rtems/src/taskexit.c @@ -42,6 +42,6 @@ void rtems_task_exit( void ) NULL ); - _Thread_Dispatch_direct( cpu_self ); + _Thread_Dispatch_direct_no_return( cpu_self ); RTEMS_UNREACHABLE(); } -- cgit v1.2.3