Commit 6680598b authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds

Disallow gcc versions 3.{0,1}

GCC 3.0 and 3.1 are too old to build a working kernel.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
[ This check got dropped as obsolete when I simplified the gcc header
  inclusion mess in f153b821, but Willy
  Tarreau reports actually having those old versions still..  -Linus ]
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b840d796
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
#error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead." #error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead."
#endif #endif
#if __GNUC_MINOR__ < 2
# error Sorry, your compiler is too old - please upgrade it.
#endif
#if __GNUC_MINOR__ >= 3 #if __GNUC_MINOR__ >= 3
# define __used __attribute__((__used__)) # define __used __attribute__((__used__))
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment