aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/Rules.mk
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-03-17 12:04:48 +0000
committerKeir Fraser <keir@xensource.com>2007-03-17 12:04:48 +0000
commitcfcf0ae28495b1fff0f16981822b1a93b9336c7a (patch)
tree0b5c11150b92066f53d41dc90dc9fb588724ad3a /xen/arch/x86/Rules.mk
parent36200329b198717624bfa37f410e3a650168a9c7 (diff)
downloadxen-cfcf0ae28495b1fff0f16981822b1a93b9336c7a.tar.gz
xen-cfcf0ae28495b1fff0f16981822b1a93b9336c7a.tar.bz2
xen-cfcf0ae28495b1fff0f16981822b1a93b9336c7a.zip
Xen and tools now require gcc 3.4+ on x86.
- gcc-3.2 cannot handle some multi-line assertions in the Xen sources. Noone noticed. - gcc-3.3 has problems with alignment constraints inside typedefs. gcc 3.4.0 is now three years old so I hope that everyone has an up-to-date compiler, or can obtain a more up-to-date package for their distribution. If not we may need to fall back to supporting gcc-3.3.x as well. Also clean up the way we do version checks, using the power of awk. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/Rules.mk')
-rw-r--r--xen/arch/x86/Rules.mk18
1 files changed, 3 insertions, 15 deletions
diff --git a/xen/arch/x86/Rules.mk b/xen/arch/x86/Rules.mk
index 899f28129c..86b9f33ab1 100644
--- a/xen/arch/x86/Rules.mk
+++ b/xen/arch/x86/Rules.mk
@@ -58,19 +58,7 @@ HDRS += $(wildcard $(BASEDIR)/include/asm-x86/hvm/*.h)
HDRS += $(wildcard $(BASEDIR)/include/asm-x86/hvm/svm/*.h)
HDRS += $(wildcard $(BASEDIR)/include/asm-x86/hvm/vmx/*.h)
-# Test for at least GCC v3.2.x.
-gcc-ver = $(shell $(CC) -dumpversion | sed -e 's/^\(.\)\.\(.\)\.\(.\)/\$(1)/')
-ifeq ($(call gcc-ver,1),1)
-$(error gcc-1.x.x unsupported - upgrade to at least gcc-3.2.x)
-endif
-ifeq ($(call gcc-ver,1),2)
-$(error gcc-2.x.x unsupported - upgrade to at least gcc-3.2.x)
-endif
-ifeq ($(call gcc-ver,1),3)
-ifeq ($(call gcc-ver,2),0)
-$(error gcc-3.0.x unsupported - upgrade to at least gcc-3.2.x)
-endif
-ifeq ($(call gcc-ver,2),1)
-$(error gcc-3.1.x unsupported - upgrade to at least gcc-3.2.x)
-endif
+# Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
+ifneq ($(call cc-ver,$(CC),0x030400),y)
+$(error Xen requires at least gcc-3.4)
endif