From afab271fa1a79a164decd47fda1cdada78730b0f Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 11 Mar 2003 17:13:31 -0800 Subject: 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. --- init/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'init') 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 #include +/* + * 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 #endif -- cgit v1.2.3