Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2458994pxb; Mon, 18 Jan 2021 19:52:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzp23L4ofX+lPam4G/5KIzr+hPkl5JJ6cylDhxbG2/CJFwTVCPNWST0QjqoHSsfSEPWzBnf X-Received: by 2002:a17:906:660b:: with SMTP id b11mr1854968ejp.458.1611028337541; Mon, 18 Jan 2021 19:52:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611028337; cv=none; d=google.com; s=arc-20160816; b=zYXlpEos0V6K6bWJy9ZNG8PKABsPvYdkp2LxbL2f8oWbupyBlAerPLkc9fRfuz8ug7 VLTORKtMyZgI/Lp/mg3OE8XtRi5uvXrpvnFeRZMU2Ys0BdNChbRuC1HigpZTNvmkZqJT EWTVdWHW8xvyS9fxWlm2IaIrOj2HcGJF1VuDA1VpHpyIAfzGMCWr0kUt8QPLU1+lx8NX ymg5+To0eR/MvZIHPFCd+uNnqcfibaWvpmtwXmzKIR0AwTeCdB/GJFkMp93p/IdrwfxL qcIX+pUQ7Vl3hSZfx/1kbvD20rwY7tsroficBMbryqlzFUzBoQJ04bFScDp/KpkIte3C pjIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mUGhrPm99MebATcyqpZOmAZkaBWoTOO8/2GhpBLWMTc=; b=ugUXdVaCnN4Xc4gkCPnVtVHHZJwR94EBwk4Yj5eNDaTKN5Cpwt8dottckGHgRNVEfd lWlJ3IjY8luYMHG2LCOKRWd9fxGjSWxV5z0RyuDc/xxZItk11LgIwqhyQR8xt5Vwd81b J5KG5PqmhE7fOqF8SDx7uTOZAzYoGUIXHPigRIWN+Iz22LHcK2VkCXlYSN6iaHRpNot4 bJcdNG3POYDhZU/tvFWUWgp0/KCLXRqyWJkOgYIAvreB02DToifLYSx5aBH5utAs7vUq onVJ287E4D4xev/wEUDEjWeIQpn9DInofk7ddyl5cFHshawNriTfnvK1wnlTiOvME3cv /NrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aTncI8ZU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f13si1072239eje.297.2021.01.18.19.51.54; Mon, 18 Jan 2021 19:52:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aTncI8ZU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389741AbhARLIy (ORCPT + 99 others); Mon, 18 Jan 2021 06:08:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:53386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389234AbhARLH5 (ORCPT ); Mon, 18 Jan 2021 06:07:57 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9B05E22B39 for ; Mon, 18 Jan 2021 11:07:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610968036; bh=B/17V8ik89vtsXGIR5+vI5O++z0spXLfDzc6QxMu1fw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=aTncI8ZU9DRrKPERRayj9QYLytI0Kh+XAzNNCPDY6hqs/y7KuJuqxqeCdOcn8KWwc 5kdM3q49VqwsdsSkm/vEWzFMrM5Whjsk9/kmfhr281dFmQjO4IbeN+fJ/IbZvicFYb 3bSyhppvNYV9ry/FEBGh8NN7Y1duwazKrnAi6jAbDWvf+GcAhaPxBWmXl1oKAgaUmJ iIiWmCyw0ZE2C3TAqiAFD/EmORNKiRUWakTeZ5j7tTC6E9/QRxTiO+FJ9ZgPQ+tFKQ 9G7Ggh11IX1tRv2WvdXIjH9Il5uij+2ckkAzdclt4F8PYSXT6MHzoNXZe1IAQfWzhH Ky2X/UAZ1Qm6Q== Received: by mail-oo1-f45.google.com with SMTP id p72so3993196oop.4 for ; Mon, 18 Jan 2021 03:07:16 -0800 (PST) X-Gm-Message-State: AOAM530vlr2hU9tCJKuEFjIzrnX8NFFuNARJRxbbV2PlUTfWXjVNV6f4 8wrS8d8oL0fcq/+Qrb2QYItntmvpwbx92VjFSPY= X-Received: by 2002:a4a:9c01:: with SMTP id y1mr16559894ooj.15.1610968035764; Mon, 18 Jan 2021 03:07:15 -0800 (PST) MIME-Version: 1.0 References: <20210118105557.186614-1-adrian.ratiu@collabora.com> <20210118105557.186614-2-adrian.ratiu@collabora.com> In-Reply-To: <20210118105557.186614-2-adrian.ratiu@collabora.com> From: Arnd Bergmann Date: Mon, 18 Jan 2021 12:06:59 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 RESEND 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning To: Adrian Ratiu Cc: Linux ARM , Nathan Chancellor , Nick Desaulniers , Arnd Bergmann , Russell King , Ard Biesheuvel , Arvind Sankar , clang-built-linux , Collabora kernel ML , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 18, 2021 at 11:56 AM Adrian Ratiu wrote: > > From: Nathan Chancellor > > Drop warning because kernel now requires GCC >= v4.9 after > commit 6ec4476ac825 ("Raise gcc version requirement to 4.9") > and clarify that -ftree-vectorize now always needs enabling > for GCC by directly testing the presence of CONFIG_CC_IS_GCC. > > Another reason to remove the warning is that Clang exposes > itself as GCC < 4.6 so it triggers the warning about GCC > which doesn't make much sense and risks misleading users. > > As a side-note remark, -fttree-vectorize is on by default in > Clang, but it currently does not work (see linked issues). > > Link: https://github.com/ClangBuiltLinux/linux/issues/496 > Link: https://github.com/ClangBuiltLinux/linux/issues/503 > Reported-by: Nick Desaulniers > Reviewed-by: Nick Desaulniers > Signed-off-by: Nathan Chancellor > Signed-off-by: Adrian Ratiu Shouldn't there be a check for whatever minimum version of clang produces optimized code now? As I understand it, the warning was originally meant to complain about both old gcc and any version of clang, while waiting for a new version of clang to produce vectorized code. Has that happened now? Arnd