aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init/main.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/init/main.c b/init/main.c
index e092b1979a90..7c79da57d3a2 100644
--- a/init/main.c
+++ b/init/main.c
@@ -54,20 +54,18 @@
54#include <asm/sections.h> 54#include <asm/sections.h>
55#include <asm/cacheflush.h> 55#include <asm/cacheflush.h>
56 56
57/*
58 * This is one of the first .c files built. Error out early
59 * if we have compiler trouble..
60 */
61
62#ifdef CONFIG_X86_LOCAL_APIC 57#ifdef CONFIG_X86_LOCAL_APIC
63#include <asm/smp.h> 58#include <asm/smp.h>
64#endif 59#endif
65 60
66/* 61/*
67 * Versions of gcc older than that listed below may actually compile 62 * This is one of the first .c files built. Error out early if we have compiler
68 * and link okay, but the end product can have subtle run time bugs. 63 * trouble.
69 * To avoid associated bogus bug reports, we flatly refuse to compile 64 *
70 * with a gcc that is known to be too old from the very beginning. 65 * Versions of gcc older than that listed below may actually compile and link
66 * okay, but the end product can have subtle run time bugs. To avoid associated
67 * bogus bug reports, we flatly refuse to compile with a gcc that is known to be
68 * too old from the very beginning.
71 */ 69 */
72#if (__GNUC__ < 3) || (__GNUC__ == 3 && __GNUC_MINOR__ < 2) 70#if (__GNUC__ < 3) || (__GNUC__ == 3 && __GNUC_MINOR__ < 2)
73#error Sorry, your GCC is too old. It builds incorrect kernels. 71#error Sorry, your GCC is too old. It builds incorrect kernels.