Commit 6680598b44ed3c0052d155522eb21fc5a00de5f3
Committed by
Linus Torvalds
1 parent
b840d79631
Exists in
master
and in
20 other branches
Disallow gcc versions 3.{0,1}
GCC 3.0 and 3.1 are too old to build a working kernel. Signed-off-by: Ingo Molnar <mingo@elte.hu> [ This check got dropped as obsolete when I simplified the gcc header inclusion mess in f153b82121b0366fe0e5f9553545cce237335175, but Willy Tarreau reports actually having those old versions still.. -Linus ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
include/linux/compiler-gcc3.h
... | ... | @@ -2,6 +2,10 @@ |
2 | 2 | #error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead." |
3 | 3 | #endif |
4 | 4 | |
5 | +#if __GNUC_MINOR__ < 2 | |
6 | +# error Sorry, your compiler is too old - please upgrade it. | |
7 | +#endif | |
8 | + | |
5 | 9 | #if __GNUC_MINOR__ >= 3 |
6 | 10 | # define __used __attribute__((__used__)) |
7 | 11 | #else |