From: Claudio Scordino Date: Mon, 26 Oct 2009 17:13:18 +0100 Subject: [PATCH 1/1] Some warnings when compiling ARM unwind support with a buggy or not-EABI compiler. ARM unwind support is known to build only with EABI and not-buggy compilers. Now we check the compiler and raise a #warning in case of wrong compiler. Signed-off-by: Claudio Scordino --- arch/arm/kernel/unwind.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/kernel/unwind.c b/arch/arm/kernel/unwind.c index 39baf11..47345c1 100644 --- a/arch/arm/kernel/unwind.c +++ b/arch/arm/kernel/unwind.c @@ -26,6 +26,15 @@ * http://infocenter.arm.com/help/topic/com.arm.doc.subset.swdev.abi/index.html */ +#if !defined (__ARM_EABI__) +#warning Your compiler does not have EABI support. +#warning ARM unwind support it is known to compile only on EABI compilers. +#warning Change compiler or disable ARM_UNWIND option. +#elif (__GNUC__ == 4 && __GNUC_MINOR__ == 2) +#warning Your compiler is too buggy; it is known to not compile ARM unwind support. +#warning Change compiler or disable ARM_UNWIND option. +#endif + #include #include #include -- 1.6.0.4