aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-03-11 17:13:31 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-03-11 17:13:31 -0800
commitafab271fa1a79a164decd47fda1cdada78730b0f (patch)
tree0d71a11e21426940612246afff6312a3e79ae45b /init
parentc9d044cb19ed64ccf26a38cc05651ca3441d4438 (diff)
downloadhistory-afab271fa1a79a164decd47fda1cdada78730b0f.tar.gz
Error out for the case of a gcc-2.96 compiler with CONFIG_FRAME_POINTER
set. A few versions of gcc-2.96 generate seriously incorrect code.
Diffstat (limited to 'init')
-rw-r--r--init/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c
index f885a1f785a6be..55d1c0595e8511 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