From: Ian Campbell Subject: Re: [PATCH] arm: fix build with gcc 4.7.x Date: Mon, 25 Jun 2012 12:18:32 +0100 Message-ID: <1340623112.3832.17.camel@zakaz.uk.xensource.com> References: <4FE86056020000780008BABB@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4FE86056020000780008BABB@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On Mon, 2012-06-25 at 11:57 +0100, Jan Beulich wrote: > 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 Acked-by: Ian Campbell > > --- a/xen/arch/arm/Rules.mk > +++ b/xen/arch/arm/Rules.mk > @@ -24,7 +24,7 @@ ifneq ($(call cc-option,$(CC),-fvisibili > 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") > > >