From 4743272d12d443e241e02e2361db2f4c2dcb480e Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Fri, 14 Mar 2008 22:05:58 +0200 Subject: [PATCH] gcc >= 4.3 is not supported Building kernel 2.6.16 with gcc 4.3 is completely untested, and you might run into both kernel and gcc problems (as always with new gcc versions). For making this obvious the kernel build now #error's when trying to build with gcc >= 4.3. The kernel might work fine when compiled with gcc 4.3 and it's therefore possible to remove the #error, but if someone really longs for regressions he can as well try a more recent kernel instead. Signed-off-by: Adrian Bunk --- include/linux/compiler.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/compiler.h b/include/linux/compiler.h index f23d3c6fc2c0..7ccf26ab145a 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -39,7 +39,11 @@ extern void __chk_io_ptr(void __iomem *); #if __GNUC__ > 4 #error no compiler-gcc.h file for this gcc version #elif __GNUC__ == 4 +#if __GNUC_MINOR__ >= 3 +#error kernel 2.6.16 does not support building with gcc >= 4.3 +#else # include +#endif #elif __GNUC__ == 3 # include #else -- 2.39.5