Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4274699imm; Mon, 15 Oct 2018 11:55:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV60VOr2WzMpG3fSZ9CfpiZIid/PpJit6D/KxyTHgIr35f5TzwoHcozzhnlTDKwojIUgRJptV X-Received: by 2002:a17:902:40d:: with SMTP id 13-v6mr18296773ple.257.1539629759747; Mon, 15 Oct 2018 11:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539629759; cv=none; d=google.com; s=arc-20160816; b=F1g0qw4zMVjC+4bvQxph2k3oRKds9ZEtLr4XmM3RhxRgo9Q102FTLv+0t9nYYXnskr tPsF57UDrUyRn1TViqnOEjQZ6OESWgGc5OOkuqXW0kmLQHi5iX0ugm+jjsCwmeXRzGNK QRbeWARXwyterDBJqbP7pcmhru2XzdyFHR4+fLz8aGPAfBlNSri84y5LpntuXtoug4Ja r3kEG+mxxZjgutEdw282JVXggCGl2XnOBIEDYP1KXrAMDjRnq9dZyvrQM0DingrGbD2X nZ2vI8Jouqftd+uKGg4zoKCsGAK04TpjUswq6rUyuuPftc9NvSrsoZrn9dMii08iSfua eu+w== 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=v0fHTt3nx5QEcGs+tsS9EXt8FcC7/j/oNaBqs6q7BmE=; b=TK6QLD8pNpPlgjfKDOvNaVH4lAEv0oaA8SI2QT2SUbhZLRw69obvf1ipHsgXhSz6EA 66QhKyB604Qxw+UAhhcmklqzr+IyJyv1m3GTzHWoDj0lhWrgO7Yf7HgB1ZTvQkhrq4BO RHWXKNP3kERuOTIGuPBMz5ksm7ahNwChmv+gtbplzmiLTR++n7FbcLdLaFh4X4RmBtE2 pA4R/RGjuHh2ztykJHS9kHNn476t9FVaZkBz7qinqKlfOvvNxVagIqX01RUbJsfdmMfs oZf6kkMdQQNMns7a7XLIM4qZ89iJ33HkVl/VY17kiqIhcM59hOhOC1VwQAtP7bjIWlMn ZN7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=ZFnueuwB; 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 k3-v6si10300069pgb.72.2018.10.15.11.55.44; Mon, 15 Oct 2018 11:55:59 -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=ZFnueuwB; 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 S1726967AbeJPCle (ORCPT + 99 others); Mon, 15 Oct 2018 22:41:34 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:35686 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbeJPCle (ORCPT ); Mon, 15 Oct 2018 22:41:34 -0400 Received: from trochilidae.toradex.int (unknown [IPv6:2a02:169:3460::525]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 2B0EA5C00FA; Mon, 15 Oct 2018 20:55:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1539629703; 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=v0fHTt3nx5QEcGs+tsS9EXt8FcC7/j/oNaBqs6q7BmE=; b=ZFnueuwBAjAysXnEpBCDjwrw84js9TFW/5RIN5cOyggmMKWb4C0Znh/YWJfaeJs9tAec/p NvEUOJvFJ27MtsRdnep7S6/2PpGJr+kkh5sQWrO7Hc9zVRb1SPIHjV67vW3To3Thy0cewY CRMTRe0MDkspB6CqQyBbkSe3lTfo2Ko= From: Stefan Agner To: linux@armlinux.org.uk, arnd@arndb.de Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, joe@perches.com, Stefan Agner Subject: [PATCH v2] ARM: error out if compiling ARMv6 using Clang before 8.0 Date: Mon, 15 Oct 2018 20:55:00 +0200 Message-Id: <20181015185500.679-1-stefan@agner.ch> X-Mailer: git-send-email 2.19.1 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 GNU assembler fail. Warn users when compiling ARMv6 using Clang before 8.0. Suggested-by: Russell King Signed-off-by: Stefan Agner Link: https://github.com/ClangBuiltLinux/linux/issues/55 --- include/linux/compiler-clang.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h index b1ce500fe8b3..9df8713bef38 100644 --- a/include/linux/compiler-clang.h +++ b/include/linux/compiler-clang.h @@ -3,6 +3,10 @@ #error "Please don't include directly, include instead." #endif +#if defined(CONFIG_ARCH_MULTI_V6) && CONFIG_CLANG_VERSION < 80000 +#error "Sorry, your compiler is too old - please upgrade it." +#endif + /* Some compiler specific definitions are overwritten here * for Clang compiler */ -- 2.19.1