Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3235193imm; Sun, 30 Sep 2018 15:23:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV60V9FKtR/xnNvZ9Kt0GjLb4AAt2I0XDJTzVPd8vULPLjiAE+oFIA/Q4dqjkkceFV0mRd38S X-Received: by 2002:a17:902:464:: with SMTP id 91-v6mr8930780ple.125.1538346186179; Sun, 30 Sep 2018 15:23:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538346186; cv=none; d=google.com; s=arc-20160816; b=FM9n8U72H+DI+sM4lNte8GZqyODFYz5GNPilfK/sjL/2VeR0YeZLjvdaOjKpx9NVWP xoFBwIv+JeY4F445OIaeOjqDWLiWdSQdPOgSC8rXmu6nTZmrrEO0mn22O4HbZT3FO6Fv eWavIyG2cmz6eklHSh1Lo+zwlO8ijeV99ukqURIQWrQ5iYivkltbSQ4rW8ZQ5ZATgAos NY3U9qy9toscOyp3smJGr5799zIX+nKQZ/R58cTzDYEq7/YbSwthHNQfWjh/SBikzDHv 4cjtpbYtQBdEA0J9Ri3QZn3MvnAr6nPz6sK/HiKHxPwKo9X3qIM6L15/QOQC7eVMmq+h 2fyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=iVT8b+pH1h/jXid4EIHi06MY3S9FUosXnXzwteaVkpM=; b=x2OjdIUbZcUBeMZZgKbpe5o6bPBDDHwBsYr6mlVKO3pjem1VOjwgRKOaq+GH+xSxqN MPHlwk9BDtGLj2D60v0Eh9fmwRq5xsI6z4nxxBt/GNcxGJ5VWP+rXwrtWUNdmY93zLZj jIXdRu0gRWHOsD8PUxX+hdP5DXeWwb0Dy110V5kwYNc3OVV/3AECvtB/+uPyONX5K47a 8W5M/gCVF5NWBHVtmCIDIfk+F2xwePKgYNcezzWec2Aw1ePs2Cq81YQDNSiByMPe0UVl nsP0rJliNB7L3e5wtedHmTOrBP0BDNzbkywQ+QoTMlEkLSe9ujj5WpAxTC3KDGA40KUY HuTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=hgkiqheL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m16-v6si10245130pfh.92.2018.09.30.15.22.51; Sun, 30 Sep 2018 15:23:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=hgkiqheL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726452AbeJAE5V (ORCPT + 99 others); Mon, 1 Oct 2018 00:57:21 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:41054 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726069AbeJAE5V (ORCPT ); Mon, 1 Oct 2018 00:57:21 -0400 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Agner 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.19.0