[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] build: Require GCC 4.1 or later.


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Fri, 14 Sep 2012 10:55:41 +0000
  • Delivery-date: Fri, 14 Sep 2012 10:55:48 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1347563616 -3600
# Node ID 5613018f93b1e80106655c75d8c40d28bd05323d
# Parent  4aa37a8fb32ae77beafb5ae9d6abd3878a2d4901
build: Require GCC 4.1 or later.

Centralise the version check in Config.mk. Any more strict version
requirements can be added to specific subdirs/arches.

Signed-off-by: Keir Fraser <keir@xxxxxxx>
---


diff -r 4aa37a8fb32a -r 5613018f93b1 Config.mk
--- a/Config.mk Thu Sep 13 16:41:33 2012 +0100
+++ b/Config.mk Thu Sep 13 20:13:36 2012 +0100
@@ -119,6 +119,10 @@ define cc-ver-check-closure
     endif
 endef
 
+# Require GCC v4.1+
+check-$(gcc) = $(call cc-ver-check,CC,0x040100,"Xen requires at least gcc-4.1")
+$(eval $(check-y))
+
 define buildmakevars2shellvars
     export PREFIX="$(PREFIX)";                                            \
     export XEN_SCRIPT_DIR="$(XEN_SCRIPT_DIR)";                            \
diff -r 4aa37a8fb32a -r 5613018f93b1 tools/Rules.mk
--- a/tools/Rules.mk    Thu Sep 13 16:41:33 2012 +0100
+++ b/tools/Rules.mk    Thu Sep 13 20:13:36 2012 +0100
@@ -78,11 +78,6 @@ CFLAGS += $(CFLAGS-y)
 
 CFLAGS += $(EXTRA_CFLAGS_XEN_TOOLS)
 
-# Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
-check-$(CONFIG_X86) = $(call cc-ver-check,CC,0x030400,\
-                        "Xen requires at least gcc-3.4")
-$(eval $(check-y))
-
 INSTALL_PYTHON_PROG = \
        $(XEN_ROOT)/tools/python/install-wrap "$(PYTHON_PATH)" $(INSTALL_PROG)
 
diff -r 4aa37a8fb32a -r 5613018f93b1 xen/arch/arm/Rules.mk
--- a/xen/arch/arm/Rules.mk     Thu Sep 13 16:41:33 2012 +0100
+++ b/xen/arch/arm/Rules.mk     Thu Sep 13 20:13:36 2012 +0100
@@ -25,7 +25,3 @@ CFLAGS += -DGCC_HAS_VISIBILITY_ATTRIBUTE
 endif
 
 CFLAGS += -mcpu=cortex-a15 -mfpu=vfpv3 -mfloat-abi=softfp
-
-# Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
-check-$(gcc) = $(call cc-ver-check,CC,0x030400,"Xen requires at least gcc-3.4")
-$(eval $(check-y))
diff -r 4aa37a8fb32a -r 5613018f93b1 xen/arch/x86/Rules.mk
--- a/xen/arch/x86/Rules.mk     Thu Sep 13 16:41:33 2012 +0100
+++ b/xen/arch/x86/Rules.mk     Thu Sep 13 20:13:36 2012 +0100
@@ -50,7 +50,3 @@ CFLAGS += -fno-asynchronous-unwind-table
 ifneq ($(call cc-option,$(CC),-fvisibility=hidden,n),n)
 CFLAGS += -DGCC_HAS_VISIBILITY_ATTRIBUTE
 endif
-
-# Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
-check-$(gcc) = $(call cc-ver-check,CC,0x030400,"Xen requires at least gcc-3.4")
-$(eval $(check-y))

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.