Workaround for armel clang compiler bug
authorTimo Röhling <roehling@debian.org>
Wed, 27 Jul 2022 20:05:48 +0000 (22:05 +0200)
committerTimo Röhling <roehling@debian.org>
Wed, 27 Jul 2022 20:05:48 +0000 (22:05 +0200)
Thanks: Adrian Bunk

debian/patches/0017-Workaround-for-armel-clang-compiler-bug.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0017-Workaround-for-armel-clang-compiler-bug.patch b/debian/patches/0017-Workaround-for-armel-clang-compiler-bug.patch
new file mode 100644 (file)
index 0000000..4601fb7
--- /dev/null
@@ -0,0 +1,21 @@
+From: Adrian Bunk <bunk@debian.org>
+Date: Mon, 18 Jul 2022 02:27:16 +0300
+Subject: Workaround for armel clang compiler bug
+
+---
+ libs/utils/include/utils/compiler.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libs/utils/include/utils/compiler.h b/libs/utils/include/utils/compiler.h
+index c0bdebf..ea63dbd 100644
+--- a/libs/utils/include/utils/compiler.h
++++ b/libs/utils/include/utils/compiler.h
+@@ -176,7 +176,7 @@
+ #   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()
index 623bfd4a45f0c6de31c374c4e73b92db3143a19f..9508bb6d00bf353b1a6e748c9af688864746fb20 100644 (file)
@@ -14,3 +14,4 @@
 0014-Avoid-mips-as-identifier-because-it-fails-on-mips-ar.patch
 0015-Ensure-proper-alignment-of-resgen-_OFFSET-and-_SIZE-.patch
 0016-Fix-FTBFS-with-GCC-12.patch
+0017-Workaround-for-armel-clang-compiler-bug.patch