diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-03-14 22:05:58 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@kernel.org> | 2008-03-14 22:05:58 +0200 |
commit | 4743272d12d443e241e02e2361db2f4c2dcb480e (patch) | |
tree | f9c43456264deb88c6e17665a8abbba1cd58be9c | |
parent | ae793603c3a69cf676d48233106e515fbdf4ceb2 (diff) |
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 <bunk@kernel.org>
-rw-r--r-- | include/linux/compiler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index f23d3c6fc2c..7ccf26ab145 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 <linux/compiler-gcc4.h> +#endif #elif __GNUC__ == 3 # include <linux/compiler-gcc3.h> #else |