Skip to contentSkip to conversation

unwind_support

PATCH New [email protected] 1 participant 1 message Mar 22, 2014 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 unwind_support

From: Mark Charlebois <[email protected]>

Patch to prevent warning of a buggy compiler when using clang and the ARM_UNWIND option.

Clang defines (at least on the current trunk) GNUC, GNUC_MINOR, and GNUC_PATCHLEVEL to 4, 2, and 1 respectively.

This version of GCC gets flagged as buggy, but it isn't actually an issue with clang so the patch will do what it did before unless clang is defined and then it will not report the GCC version as an issue.

---
 arch/arm/kernel/unwind.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/kernel/unwind.c +1 -1
index 00df012..321c4f9 100644
@@ -31,7 +31,7 @@
 #warning Your compiler does not have EABI support.
 #warning    ARM unwind is known to compile only with EABI compilers.
 #warning    Change compiler or disable ARM_UNWIND option.
-#elif (__GNUC__ == 4 && __GNUC_MINOR__ <= 2)
+#elif (__GNUC__ == 4 && __GNUC_MINOR__ <= 2) && !defined(__clang__)
 #warning Your compiler is too buggy; it is known to not compile ARM unwind support.
 #warning    Change compiler or disable ARM_UNWIND option.
 #endif
Signature · 1 line
1.8.3.2