From 863b26ee3a5ab938c2003bcdbc5b82957f917997 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 24 Apr 2023 14:46:43 +0200 Subject: score: Avoid cyclic header file dependencies There was a cyclic dependency: For RTEMS_STATIC_ANALYSIS we needed basedefs.h in assert.h. For RTEMS_UNREACHABLE() we needed _Assert() from assert.h in basedefs.h. Fix this by introducing _Debug_Unreachable() in basedefs.h. Add RTEMS_FUNCTION_NAME to basedefs.h and use it in basedefs.h and assert.h. Close #4900. --- spec/build/cpukit/librtemscpu.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'spec') diff --git a/spec/build/cpukit/librtemscpu.yml b/spec/build/cpukit/librtemscpu.yml index 2c969aa5f6..e80be5ebf0 100644 --- a/spec/build/cpukit/librtemscpu.yml +++ b/spec/build/cpukit/librtemscpu.yml @@ -1409,6 +1409,7 @@ source: - cpukit/score/src/coretodhookunregister.c - cpukit/score/src/coretodset.c - cpukit/score/src/debugisthreaddispatchingallowed.c +- cpukit/score/src/debugunreachable.c - cpukit/score/src/freechain.c - cpukit/score/src/futex.c - cpukit/score/src/gcovdumpinfobase64.c -- cgit v1.2.3