]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Disallow gcc versions 3.{0,1}
authorIngo Molnar <mingo@elte.hu>
Fri, 2 Jan 2009 17:53:14 +0000 (18:53 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Jan 2009 20:19:34 +0000 (12:19 -0800)
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>
include/linux/compiler-gcc3.h

index 2befe6513ce4ab31613d26b22b398bbce627598f..8005effc04f19097aa781caf016a666e492adcb1 100644 (file)
@@ -2,6 +2,10 @@
 #error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead."
 #endif
 
+#if __GNUC_MINOR__ < 2
+# error Sorry, your compiler is too old - please upgrade it.
+#endif
+
 #if __GNUC_MINOR__ >= 3
 # define __used                        __attribute__((__used__))
 #else