From patchwork Sun Sep 30 22:22:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Agner X-Patchwork-Id: 10621545 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0DD69A6A for ; Sun, 30 Sep 2018 22:23:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E417828F81 for ; Sun, 30 Sep 2018 22:23:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D39A72900B; Sun, 30 Sep 2018 22:23:07 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 8649928F81 for ; Sun, 30 Sep 2018 22:23:06 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=NLak7DKt6dzi8X9SPO8NW/55kq3tdJuDrdmANCurL40=; b=KbwP4aXW5CqvPN DjdiezpoQKNmjRGlx09qeUlzH4t2q4ZcvTLja5utVa7/vMGGJcTu0P6ZCNZDFp4lhwcli6ab0U1Qz 0ssVS3zLB5DBiQXGNa63H36X9h2a4WYAKcx1pj9J9n3nlFplLKXDXjNpwizyGwUEbo5GHWJ6JgjcT Oog0m82APYdF4HaIUKb5/HLN3uBuM/bwUud4ABqyHfstLfxC0W821uS2Kx6z09DWxlTKcl0VhJJNz YeU42cghn3lFCr4phSGwiPCMOoOhrmJdWNuF3yVyWC7FDTkb+iEQ2ur9mjDJoeqvoLEYUaKdLw67I SXO7vknKQcI3uTMIcAzQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g6k7A-00068o-V5; Sun, 30 Sep 2018 22:23:00 +0000 Received: from mail.kmu-office.ch ([2a02:418:6a02::a2]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g6k76-00067g-DY for linux-arm-kernel@lists.infradead.org; Sun, 30 Sep 2018 22:22:58 +0000 Received: from trochilidae.lan (unknown [37.17.239.3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id D63595C0604; Mon, 1 Oct 2018 00:22:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1538346156; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=iVT8b+pH1h/jXid4EIHi06MY3S9FUosXnXzwteaVkpM=; b=hgkiqheLZNN5ybkOOlu+ujYfyWesTv2fNFgbeg9SxJFa1VOGpmmpMeRQ/Y2pigHCcYCmRR bd7Y+nkqkOWSat1VkxByWmveimeF+NqHITIU5JMulg1chUsiMG8Erl91o9ECcse7ezfKdI 45WRaYkibGR88Qg2fVRdFrg1zC1JfJM= From: Stefan Agner To: linux@armlinux.org.uk, arnd@arndb.de Subject: [PATCH] ARM: disable ARMv6 for Clang older than 8.0 Date: Mon, 1 Oct 2018 00:22:30 +0200 Message-Id: <20180930222230.24167-1-stefan@agner.ch> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180930_152256_604381_7A8B6FB1 X-CRM114-Status: GOOD ( 11.57 ) 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: Stefan Agner , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 The kernel passes the ArmV6K architecture to the compiler when using the multi platform selection and enabling ARMv6. Clang older than version 8.0 emit assembly with an non-existing CPU, which then makes the assembler fail. Prevent the user from selecting ARMv6 when using Clang before 8.0. Signed-off-by: Stefan Agner Link: https://github.com/ClangBuiltLinux/linux/issues/55 --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e8cd55a5b04c..8da160757381 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -671,6 +671,7 @@ config ARCH_MULTI_V4_V5 config ARCH_MULTI_V6 bool "ARMv6 based platforms (ARM11)" + depends on !CC_IS_CLANG || CLANG_VERSION>=80000 select ARCH_MULTI_V6_V7 select CPU_V6K