From: Adrian Bunk Date: Fri, 14 Mar 2008 20:05:58 +0000 (+0200) Subject: gcc >= 4.3 is not supported X-Git-Tag: v2.6.16.61-rc1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4743272d12d443e241e02e2361db2f4c2dcb480e;p=thirdparty%2Fkernel%2Fstable.git 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 --- diff --git a/include/linux/compiler.h b/include/linux/compiler.h index f23d3c6fc2c06..7ccf26ab145ab 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