summaryrefslogtreecommitdiff
path: root/init/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/main.c')
-rw-r--r--init/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c
index f885a1f785a6..55d1c0595e85 100644
--- a/init/main.c
+++ b/init/main.c
@@ -39,6 +39,16 @@
#include <asm/io.h>
#include <asm/bugs.h>
+/*
+ * This is one of the first .c files built. Error out early
+ * if we have compiler trouble..
+ */
+#if __GNUC__ == 2 && __GNUC_MINOR__ == 96
+#ifdef CONFIG_FRAME_POINTER
+#error This compiler cannot compile correctly with frame pointers enabled
+#endif
+#endif
+
#ifdef CONFIG_X86_LOCAL_APIC
#include <asm/smp.h>
#endif