arm: fix build with gcc 4.7.x
authorJan Beulich <jbeulich@suse.com>
Mon, 25 Jun 2012 11:41:32 +0000 (13:41 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 25 Jun 2012 11:41:32 +0000 (13:41 +0200)
As was already pointed out months ago (see
http://lists.xen.org/archives/html/xen-devel/2012-02/msg00826.html),
gcc 4.7.x (imo validly) refuses to take both -mcpu=cortex-a15 and
-march=armv7-a due to conflicting feature sets causing amibiguity in
instruction selection. Since the former implies the latter, just use
the former (and drop the -march=).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/Rules.mk

index c61cc67e0aa3ecf34626d99067d7a44f84abce6d..d99c8c6d25c940a9fce839e8629ef61801222c9a 100644 (file)
@@ -24,7 +24,7 @@ ifneq ($(call cc-option,$(CC),-fvisibility=hidden,n),n)
 CFLAGS += -DGCC_HAS_VISIBILITY_ATTRIBUTE
 endif
 
-CFLAGS += -march=armv7-a -mcpu=cortex-a15 -mfpu=vfpv3 -mfloat-abi=softfp
+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")