From patchwork Fri Nov 3 17:11:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 10040935 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BE5A3600C5 for ; Fri, 3 Nov 2017 17:49:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ACA0629001 for ; Fri, 3 Nov 2017 17:49:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9EE0529087; Fri, 3 Nov 2017 17:49:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0939B29001 for ; Fri, 3 Nov 2017 17:49:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=fxVMh/VQBX6wJnpA5NoUf+wQElyBUa9sfaXOH2tgbvQ=; b=P4H4obF3CsMo/JRTSCcyGKZs+8 Yy6+IYri2fJTKL15qf9jgGw3VsxWhSAz9R/3LUK8YVC8bTmZWHP0q/nmm+sSM9yckvn5JDZsEsQGt /Tmi1h/ySf4qY4poOyriyxbBN2A11l5JzOryc/mqtq2cbe3nlsLBaARroHp+Bvqgt8MKbAdZ67aCP Kv9Vc+TwJsT6rezjgCchibLI/6dzG/UeXOw25MRRecHe5hxaJhnKbjgbO3uj3R6dY/yVpW1duxAbs aRMnpa4y7/k5ksKDP8ePCluRyKK2b2A8yPFgzLOIvLDMdA/zQ0RAmS5xonyCpJsr1KtJ9V+i4yacA 2q8oa0sQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eAg63-0001Ry-Su; Fri, 03 Nov 2017 17:49:35 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAg5i-00017j-Vm for linux-arm-kernel@bombadil.infradead.org; Fri, 03 Nov 2017 17:49:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=cqSJM3FHdRTlNubkXBQeEFcFwZqPF+QWDT+cvQWF0Wo=; b=BQ85GLZZcMew22P81hhQMccTc HgPNZtQg1HqXHLLtc21TVoeV9MTwe4YEt9yh/J4w1iXHsaHHQhSBDJXdb38KTnEfVbLWmjBJ2m1Nx NANY6PaMib7W7PTPzoX/wm4zNObZcridIMe6NwDwAw0097F4aIhLLfhubXoXJrWqL2K9dAcc9VI3Y 0UVzbcyjB8fD6tux8G28sJUIR7tepBekbHgZpKWAywq/AucmnG9U8tg1JQznekSVHveSbW7xk2wJE 6ZQAKqcGy2OiWXP05SDPL+v5yD6ssYFl0mSlrdYbazeXCeFVF4F9RPkqTDpIMRdTHePquNBtF1BqA rO6xJ2/SQ==; Received: from mail-io0-x241.google.com ([2607:f8b0:4001:c06::241]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAfWp-0004JC-RN for linux-arm-kernel@lists.infradead.org; Fri, 03 Nov 2017 17:13:12 +0000 Received: by mail-io0-x241.google.com with SMTP id i38so7762449iod.2 for ; Fri, 03 Nov 2017 10:12:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cqSJM3FHdRTlNubkXBQeEFcFwZqPF+QWDT+cvQWF0Wo=; b=XZHwqqH2VZn28liKzTpLlAGEJWR3yFVNuLH6MDOuPcOrWq38eo6fWg/JY4M//92PT6 TXzEHbL43EpLA2eOwgtqbNQ58LVnm67ndO6CJI9nKNMuaS4pMshlAlQIixx74gSyl2l+ j4ZAc9sIj91iD/Elu1oi1F9S39i8xhFy23FTNWiMa6aPjsHpa0kvu6WotiHzUe8ovLtz kHW9mV3iWo1Sj9FfNncUO57WoMOql60m+RskEUCqutzJRVSJ8p5GlJUSUntEoABhawem FU1xRu2tgqQyp8r4NKgE/4NsSwtkP1ugttqIxtcfO+zeFYAeyxLts1kfFCT0TyvgAxAG JczQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cqSJM3FHdRTlNubkXBQeEFcFwZqPF+QWDT+cvQWF0Wo=; b=BRAZPr1DnFDvYJH6c9fMKYGWT6g2qUINOTiwbKzljty/Hlsvh9Qfztb9xt24V6G2gN wBOi3DE5FviI/ZTLMCWMFvn0HQ/Tg3paMD8VznyKTWQxWL05ldpe0CwetOqSThSlTzxK V0Ao8vUY9lhgycPXppExcS6LrfmxYUoG5avUvpRrdlQ3u22oRYioMz/IJFkE+89PbO7R GznRt1HugDAcCFNvr54SlaF5Vmqw+gz1MEM/vxc9tErG6I+/Cvxmwb1O/cljoy8sC/IU s8/9VMJmAJCZtsgRWvlN3x31aw3F9RkxqVPNMkRy+gY2zv2C6p88+LL4SMbsYy4zMWPD XOCg== X-Gm-Message-State: AMCzsaV4voCg5xRFyKHdUwvqni+RpTc8Bbu0L2qXAcFAn0c0qx9PTKMB lJMUcNgowjRm3SprAQe75wNsPZS0jVE= X-Google-Smtp-Source: ABhQp+SkjnSmgCVWIKhy77NEtiKB8yM03zindtwkZ9UDA2lmdXQqU0Ryw/ckZp0F+D40dHGBbsZZeA== X-Received: by 10.107.141.215 with SMTP id p206mr10189632iod.267.1509729169280; Fri, 03 Nov 2017 10:12:49 -0700 (PDT) Received: from samitolvanen.mtv.corp.google.com ([100.98.112.14]) by smtp.gmail.com with ESMTPSA id d186sm1370787itd.38.2017.11.03.10.12.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 10:12:48 -0700 (PDT) From: Sami Tolvanen To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 07/15] arm64: use -mno-implicit-float instead of -mgeneral-regs-only Date: Fri, 3 Nov 2017 10:11:52 -0700 Message-Id: <20171103171203.107569-9-samitolvanen@google.com> X-Mailer: git-send-email 2.15.0.403.gc27cc4dac6-goog In-Reply-To: <20171103171203.107569-1-samitolvanen@google.com> References: <20171103171203.107569-1-samitolvanen@google.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sami Tolvanen , Matthias Kaehlcke , Nick Desaulniers , Kees Cook , Greg Hackmann MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- arch/arm64/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 939b310913cf..eb6f3c9ec6cb 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -45,7 +45,13 @@ $(warning Detected assembler with broken .inst; disassembly will be unreliable) endif endif -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 +KBUILD_CFLAGS += $(lseinstr) $(brokengasinst) KBUILD_CFLAGS += -fno-asynchronous-unwind-tables KBUILD_CFLAGS += $(call cc-option, -mpc-relative-literal-loads) KBUILD_AFLAGS += $(lseinstr) $(brokengasinst)