public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] x86: don't compile with gcc-3.3.3
@ 2010-09-13  8:31 florian
  2010-09-13  8:39 ` Peter Zijlstra
  0 siblings, 1 reply; 11+ messages in thread
From: florian @ 2010-09-13  8:31 UTC (permalink / raw)
  To: x86
  Cc: Florian Mickler, Thomas Gleixner, Ingo Molnar, H. Peter Anvin,
	Peter Zijlstra, Russell King, Mike Frysinger, linux-kernel

hpa commented on bug 16506[1] :
"Please note that gcc-3.3.3 is known broken on x86; gcc-3.4 is the oldest
version which is known to *not* be broken."

References: 
	[0]: https://bugzilla.kernel.org/show_bug.cgi?id=16633
	[1]: https://bugzilla.kernel.org/show_bug.cgi?id=16506#c28

If that is indeed so, we should abort the build? No?


---
 arch/x86/Makefile |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 8aa1b59..1eb2d99 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -153,7 +153,7 @@ all: bzImage
 # KBUILD_IMAGE specify target image being built
 KBUILD_IMAGE := $(boot)/bzImage
 
-bzImage: vmlinux
+bzImage: checkgccversion vmlinux
 ifeq ($(CONFIG_X86_DECODER_SELFTEST),y)
 	$(Q)$(MAKE) $(build)=arch/x86/tools posttest
 endif
@@ -172,6 +172,12 @@ PHONY += vdso_install
 vdso_install:
 	$(Q)$(MAKE) $(build)=arch/x86/vdso $@
 
+checkgccversion:
+	$(Q)if test "$(call cc-fullversion)" = "040403" ; then \
+		echo "*** GCC-3.3.3 is known broken. Please upgrade." ; \
+		echo "*** GCC-3.4 is the earliest version known *not* broken." ; \
+		false ; \
+	fi
 archclean:
 	$(Q)rm -rf $(objtree)/arch/i386
 	$(Q)rm -rf $(objtree)/arch/x86_64
-- 
1.7.2


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-09-13 20:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-13  8:31 [RFC PATCH] x86: don't compile with gcc-3.3.3 florian
2010-09-13  8:39 ` Peter Zijlstra
2010-09-13 15:56   ` H. Peter Anvin
2010-09-13 16:21     ` Florian Mickler
2010-09-13 16:28       ` Florian Mickler
2010-09-13 17:25         ` H. Peter Anvin
2010-09-13 18:42           ` Florian Mickler
2010-09-13 20:00             ` H. Peter Anvin
2010-09-13 20:03               ` Florian Mickler
2010-09-13 16:33   ` Russell King - ARM Linux
2010-09-13 17:26     ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox