aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-02 12:53:14 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-02 15:19:34 -0500
commit6680598b44ed3c0052d155522eb21fc5a00de5f3 (patch)
treea5b3fb7bf08e3c96c837cf2ed7474ec9ea5abd63 /include
parentb840d79631c882786925303c2b0f4fefc31845ed (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/compiler-gcc3.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/compiler-gcc3.h b/include/linux/compiler-gcc3.h
index 2befe6513ce4..8005effc04f1 100644
--- a/include/linux/compiler-gcc3.h
+++ b/include/linux/compiler-gcc3.h
@@ -2,6 +2,10 @@
2#error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead." 2#error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead."
3#endif 3#endif
4 4
5#if __GNUC_MINOR__ < 2
6# error Sorry, your compiler is too old - please upgrade it.
7#endif
8
5#if __GNUC_MINOR__ >= 3 9#if __GNUC_MINOR__ >= 3
6# define __used __attribute__((__used__)) 10# define __used __attribute__((__used__))
7#else 11#else