Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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