From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1947680AbcBSRI2 (ORCPT ); Fri, 19 Feb 2016 12:08:28 -0500 Received: from mail-qg0-f52.google.com ([209.85.192.52]:35901 "EHLO mail-qg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1427111AbcBSRI0 (ORCPT ); Fri, 19 Feb 2016 12:08:26 -0500 Date: Fri, 19 Feb 2016 12:08:23 -0500 (EST) From: Nicolas Pitre To: Arnd Bergmann cc: Russell King , linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , Jon Medhurst , Marc Zyngier , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] [RESEND] ARM: pass -march=armv7-a when building NEON files with clang In-Reply-To: <3205167.CfekeqRXnt@wuerfel> Message-ID: References: <1455815113-2562966-1-git-send-email-arnd@arndb.de> <1455815113-2562966-2-git-send-email-arnd@arndb.de> <3205167.CfekeqRXnt@wuerfel> User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 19 Feb 2016, Arnd Bergmann wrote: > On Thursday 18 February 2016 12:31:35 Nicolas Pitre wrote: > > On Thu, 18 Feb 2016, Arnd Bergmann wrote: > > > > > clang ignores the -mfpu=neon flag when building with -march=armv6: > > > > > > In file included from lib/raid6/neon1.c:27: > > > clang/3.8.0/include/arm_neon.h:28:2: error: "NEON support not enabled" > > > > > > There is no real need to build the file with -march=armv6 in a > > > multi-CPU enabled kernel, as nothing in here will ever get called > > > on an ARMv6 CPU. Adding -march=armv7 doesn't hurt and can only > > > improve the code quality. > > > > Is this enough to override a previous -mfpu for gcc? > > I did not see any build failures on gcc with this, so I assume it > has no effect. I could move the -march=armv7-a in front of > -mfpu=neon if you think that would be safer though. I don't know what's safer. That's why I'm asking. :-) Nicolas