Skip to content

Commit e6b8075

Browse files
mcharlebbehanw
authored andcommitted
arm, unwind, LLVMLinux: Enable clang to be used for unwinding the stack
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. Signed-off-by: Mark Charlebois <[email protected]> Signed-off-by: Behan Webster <[email protected]>
1 parent 76ae038 commit e6b8075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/kernel/unwind.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#warning Your compiler does not have EABI support.
3232
#warning ARM unwind is known to compile only with EABI compilers.
3333
#warning Change compiler or disable ARM_UNWIND option.
34-
#elif (__GNUC__ == 4 && __GNUC_MINOR__ <= 2)
34+
#elif (__GNUC__ == 4 && __GNUC_MINOR__ <= 2) && !defined(__clang__)
3535
#warning Your compiler is too buggy; it is known to not compile ARM unwind support.
3636
#warning Change compiler or disable ARM_UNWIND option.
3737
#endif

0 commit comments

Comments
 (0)