Workaround for armel clang compiler bug
authorAdrian Bunk <bunk@debian.org>
Sun, 17 Jul 2022 23:27:16 +0000 (02:27 +0300)
committerTimo Röhling <roehling@debian.org>
Wed, 27 Jul 2022 20:13:33 +0000 (21:13 +0100)
Gbp-Pq: Name 0017-Workaround-for-armel-clang-compiler-bug.patch

libs/utils/include/utils/compiler.h

index c0bdebfbcf5f5507def56e96b79ff932632cd06e..ea63dbd463b2b575ef8b23580f24a6d0b4776937 100644 (file)
 #   define UTILS_HAS_RTTI 0
 #endif
 
-#ifdef __ARM_ACLE
+#if defined(__ARM_ACLE) && (__ARM_ARCH >= 7)
 #   include <arm_acle.h>
 #   define UTILS_WAIT_FOR_INTERRUPT()   __wfi()
 #   define UTILS_WAIT_FOR_EVENT()       __wfe()