Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3109075pxb; Tue, 19 Jan 2021 14:09:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkW7F2UcNlpj0UZZMYCs7esvmSau4lRW7fP7Tz/vo3T8TSTU6gc7Y2QJWAJSN0bP73TZyB X-Received: by 2002:a05:6402:5206:: with SMTP id s6mr4918893edd.92.1611094162929; Tue, 19 Jan 2021 14:09:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611094162; cv=none; d=google.com; s=arc-20160816; b=TF9v8OOXP+34DmljvAab3gjatTHwBW+7MRnj8y619jtU9JuvW7GwSVnMT5moVUqZ4U g3ccJ9/GoupXsbTVh/TH7NLTuT+WYyJkhzvrd6lmfr8pfc3ovTtkXgtxDO3ftNRQxBE5 1RgmUh7+ScxhvoDUpbrMke6pQsQmZFlz0gu3BoFTaU5srXScoRA/OrpHUlLjoON+wJO3 xtvFhZ/9pSL7pHNFpVcr2kdGE8h3OVmsiZmkzZIA2Zg4dsJdBijyCvkJUPynCsxZ1tni hl7+IXlnialgovptzXNum4J2mjL9XYArLEVaKcZSLn5BBnXMfBKpHmcdBa2VgfLLQKJ5 hEow== 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=3VDFmCkUMNPKmHsspsc2TmeFVZbcyk9WVcGlmL8bi5c=; b=Xh4Nqixif09mQNXxfvFANSK7PcABS0lcb6ioVm1Ww+3ppFdbqRhTI2Cyxoqn3XPmG3 GuhSR41mCn6N8NOUI4s+Ve3JUz4WH3/U/8O9BchcicKqXAq1gNgN27HP6XMr1QemZ3pr 0YDHGiWe8zeNo+3Xk9ro1/z6AZkqVyXaONjPhOf4quHVqTcTSQz+OFShX6CjdIuhpSh6 rHHlK7FVr1QbJTGTOpIz9FS4epby7P9Es7Tjba00+uVrZyppEpzg77SrurXCP1w4T0Ag lgI1uWMHlkRwxaJWj8XKoeC9naqzOejK/ajvRoSA9y/p1nBi9NcUTJ710wIcSjrDzMcd 0Drw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gHAO+OhW; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n25si57259edw.77.2021.01.19.14.08.54; Tue, 19 Jan 2021 14:09:22 -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=@google.com header.s=20161025 header.b=gHAO+OhW; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727191AbhASWHQ (ORCPT + 99 others); Tue, 19 Jan 2021 17:07:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728768AbhASWGW (ORCPT ); Tue, 19 Jan 2021 17:06:22 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B3DAC061757 for ; Tue, 19 Jan 2021 14:05:42 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id my11so2062000pjb.1 for ; Tue, 19 Jan 2021 14:05:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3VDFmCkUMNPKmHsspsc2TmeFVZbcyk9WVcGlmL8bi5c=; b=gHAO+OhWy4XWUPe1e+eFCec1GdQz1h3qg6HQdZkm26CnELouSOxaLmGiwcBXiZdzDR lOLCIxcuu+b2Yf3fh1yWr0nhNNiZxM32pcT7Mzbxt39Fn7XUqzzo25HarEjEs3jZOygL TbHfp+u2uB19rAJoTmwKvbkcEMtgUkQ/XIgc1yXYeu7L0TU2LHOi+VStCX6HBN9Fj4TY AZI7tsSMRpYi86eXYfKbDOAXiv39VvVCz3bZ7zkmnHhicrtrWLJP9gaW5q5BYgmSsBgM L8WgMtZhcippL53HQ3XDti9k4DQnTo5Nl5kms4irTjGytZkOTTa8BEnBt4QGK/McxKUk CRlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3VDFmCkUMNPKmHsspsc2TmeFVZbcyk9WVcGlmL8bi5c=; b=RoZx4ObnP7/6wmizLJGch/lCeSXGbUyzRmTThQ1Vl+7dfrp95N3pQXUKZLAES3gQjf UU0mToAbrUHxiyzmfc0aCOWZhGjyQbiFB7S58t85LSaCy4V8zDo3E2nCHODiEVbQy4uc zuYYY1o1/BFdqUGDhx9F3NzQX/kE0OLvMdIHoyURmWGRBG4HsZRdKeONSp8iImfJzuG5 Fdkv1h76fYGDoLvN8RWFAKchbhpVzyY3avhRbD2NagTNyK8/XS0yAk5xMgnlICTITPYM 9KkTkc0hZmSrRneLYl6mOKMAFSoBWiyxCETT0MAxKwlYL6A8j8BCyorBQukI2WuGO850 SP4Q== X-Gm-Message-State: AOAM533k++vgyUEPGCnQxSLemctttdRDZPLYqqf7gI8Nekl0FiCCKQ7c YpvKoCgX5jxngxeXAQE7p0QxZzUbkC+5zeygMNhPMA== X-Received: by 2002:a17:902:26a:b029:da:af47:77c7 with SMTP id 97-20020a170902026ab02900daaf4777c7mr6951605plc.10.1611093941955; Tue, 19 Jan 2021 14:05:41 -0800 (PST) MIME-Version: 1.0 References: <20210119131724.308884-1-adrian.ratiu@collabora.com> <20210119131724.308884-2-adrian.ratiu@collabora.com> <3dbc2ce713e44e3a9a913db5446506a8@AcuMS.aculab.com> In-Reply-To: <3dbc2ce713e44e3a9a913db5446506a8@AcuMS.aculab.com> From: Nick Desaulniers Date: Tue, 19 Jan 2021 14:05:30 -0800 Message-ID: Subject: Re: [PATCH v4 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning To: David Laight Cc: Adrian Ratiu , "linux-arm-kernel@lists.infradead.org" , Nathan Chancellor , Arnd Bergmann , Russell King , Ard Biesheuvel , Arvind Sankar , clang-built-linux , "kernel@collabora.com" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 19, 2021 at 2:04 PM David Laight wrote: > > From: Adrian Ratiu > > Sent: 19 January 2021 13:17 > > To: linux-arm-kernel@lists.infradead.org > > > > 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. > ... > > -#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) > > +#ifdef CONFIG_CC_IS_GCC > > #pragma GCC optimize "tree-vectorize" > > -#else > > I thought that #pragma optimise was very likely to remove > a random subset of the command line parameters leading to > incorrect/unexpected code. > > As such the extra option needs to passed in as a per source > file compiler option. Yes, patch 2 in the series removes it from .c source, and passes -ftree-vectorize during Kbuild. > > David > > - > Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK > Registration No: 1397386 (Wales) > -- Thanks, ~Nick Desaulniers