From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755728AbdKCScB (ORCPT ); Fri, 3 Nov 2017 14:32:01 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:48580 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751790AbdKCScA (ORCPT ); Fri, 3 Nov 2017 14:32:00 -0400 Date: Fri, 3 Nov 2017 18:31:56 +0000 From: Mark Rutland To: Sami Tolvanen Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Matthias Kaehlcke , Nick Desaulniers , Kees Cook , Greg Hackmann Subject: Re: [PATCH 07/15] arm64: use -mno-implicit-float instead of -mgeneral-regs-only Message-ID: <20171103183156.ando3jj5pl2hfk5j@lakrids.cambridge.arm.com> References: <20171103171203.107569-1-samitolvanen@google.com> <20171103171203.107569-9-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171103171203.107569-9-samitolvanen@google.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 03, 2017 at 10:11:52AM -0700, Sami Tolvanen wrote: > From: Greg Hackmann > > LLVM bug 30792 causes clang's AArch64 backend to crash compiling > arch/arm64/crypto/aes-ce-cipher.c. Replacing -mgeneral-regs-only with > -mno-implicit-float is the suggested workaround. > > Signed-off-by: Greg Hackmann > Cc: Matthias Kaehlcke > Signed-off-by: Sami Tolvanen Just to check, what happens if you pass both to clang? If it works when you pass both... > -KBUILD_CFLAGS += -mgeneral-regs-only $(lseinstr) $(brokengasinst) > +ifeq ($(cc-name),clang) > +# This is a workaround for https://bugs.llvm.org/show_bug.cgi?id=30792. > +KBUILD_CFLAGS += -mno-implicit-float > +else > +KBUILD_CFLAGS += -mgeneral-regs-only > +endif ... then this can be reduced to: # This is a workaround for https://bugs.llvm.org/show_bug.cgi?id=30792 KBUILD_CFLAGS += $(call cc-option, -mno-implicit-float) Thanks, Mark. > +KBUILD_CFLAGS += $(lseinstr) $(brokengasinst) > KBUILD_CFLAGS += -fno-asynchronous-unwind-tables > KBUILD_CFLAGS += $(call cc-option, -mpc-relative-literal-loads) > KBUILD_AFLAGS += $(lseinstr) $(brokengasinst) > -- > 2.15.0.403.gc27cc4dac6-goog > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel