]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
gcc >= 4.3 is not supported
authorAdrian Bunk <bunk@kernel.org>
Fri, 14 Mar 2008 20:05:58 +0000 (22:05 +0200)
committerAdrian Bunk <bunk@kernel.org>
Fri, 14 Mar 2008 20:05:58 +0000 (22:05 +0200)
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 <bunk@kernel.org>
include/linux/compiler.h

index f23d3c6fc2c06ea9766ec18a8580f1de5234975e..7ccf26ab145abd38a6d81f32791e8a2f803a16b0 100644 (file)
@@ -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 <linux/compiler-gcc4.h>
+#endif
 #elif __GNUC__ == 3
 # include <linux/compiler-gcc3.h>
 #else