From: Ingo Molnar Date: Fri, 2 Jan 2009 17:53:14 +0000 (+0100) Subject: Disallow gcc versions 3.{0,1} X-Git-Tag: v2.6.29-rc1~537 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6680598b44ed3c0052d155522eb21fc5a00de5f3;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 [ 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 --- diff --git a/include/linux/compiler-gcc3.h b/include/linux/compiler-gcc3.h index 2befe65..8005eff 100644 --- a/include/linux/compiler-gcc3.h +++ b/include/linux/compiler-gcc3.h @@ -2,6 +2,10 @@ #error "Please don't include directly, include 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