Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp178183pxy; Sat, 14 Aug 2021 04:04:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyirzH33ii7IwUiRQ7ROQv9n4PFi2eS/09khoIU8Ye97axlYaeQzfT10QCz82/XjiIifAQ X-Received: by 2002:a17:906:dd9:: with SMTP id p25mr7040621eji.144.1628939091019; Sat, 14 Aug 2021 04:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628939091; cv=none; d=google.com; s=arc-20160816; b=DyQ6vvZ7mDgYF0+/W9nHT8nQaQ3cIii42sp9fr9BfNuU6ook/VDQmhLuxSJedglBMs 29BojbQx8rL3Gz4Mmtk1NXNdgJlEkM7HjPQ3c8K46/XLrL4wcCAwNiHoAG1tSEACWhLJ uzU8jvPlNUfOJplJbItcvoWjLu9hH5xjZzks3oJxRLuWPiO1pEDBGLyVzSSA0cnWkcjL 0WIKHsOLxLlzukKP5DXevsjmscfRG+7Ju76Zs5u2van0Pi+93G4d3BlZOreG0KMyLdeM tot6IQpI6OSlBAyh5hWKK75VSUNARijrhLZ8JbX/nbTESDdB12h297fjDhZGHzYcSy9a Uwcg== 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=Ad97cnuJ60n5L2dXuWbdhv2jj+zm4I/j9SiEmdlB3hk=; b=dH/GsxI3vK3JMEYoc+JZH+ztw/ZBJo1BO39ASUIbgKA2pgiV12M8tB9DRT5PkUtZ3n qL7vjZuZ/oTJ3J8Lhr+R/vbIp92XSlmO6UOloxa8wYjHu02+HXQrx4IjooyF5Krmm1RU rbjrc13mUZE+89HfjzOcVEgRMrbE9uLtSQTRpmjDDm4P8VQt8tHZ4wrlJbtU5FwLFqc8 ZFSVwujIEGQ3xsZq/WJcz+9H/84B2vecyZev88qEiIbcY/e73BuWR7ogB3N9MDV5VG6I ULl0ODo997b7wh6F593WzBQgzInsuEDP2BKWq4NG3lcJKO3C2d61HC3M1P6gi7FUs0Vs 8PhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vPBicPax; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v2si4366613ejy.465.2021.08.14.04.04.27; Sat, 14 Aug 2021 04:04:51 -0700 (PDT) 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=@linaro.org header.s=google header.b=vPBicPax; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237940AbhHNLDS (ORCPT + 99 others); Sat, 14 Aug 2021 07:03:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232881AbhHNLDP (ORCPT ); Sat, 14 Aug 2021 07:03:15 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F727C061764 for ; Sat, 14 Aug 2021 04:02:47 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id d11so23045985eja.8 for ; Sat, 14 Aug 2021 04:02:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ad97cnuJ60n5L2dXuWbdhv2jj+zm4I/j9SiEmdlB3hk=; b=vPBicPaxBjSV9abB+6Scs73fr2fPNlYt6PmGAcfKZdmoKvaWOCdpyYZfLZuimuu8Px 1956ZOlTmalN/EbO6gaxRN9r3xE667VP3H8aaumhaXet2LM/MODHWH26oboEvgfSVl36 oeahSvk7UbOyI/9LnrfMYytaIibitmPOvb21AEF0ZD09AiNoGKS5VJkh4EejxSCmnpZz 4i6IyJ1ymX4GF2nQC+FtUvNKnD0URs3n+lCbbTaKAL73mJBqsmxpLaoyiGpcKIYWs0G5 Uf6/QtCiJkgBbTYcmagNXaFxunlz+rE7zvGC9qpnr/DDJ3eIE3gtXHwDWJKLiuLEfyUu /vvw== 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=Ad97cnuJ60n5L2dXuWbdhv2jj+zm4I/j9SiEmdlB3hk=; b=J0E4Dh/TPozBaCR1GWXwpEi8nttY0Ds+0Sab+pD6bwqaai3Ga5r4bQL0OcoYQZ5EYP 5g/6/FQU6HCYoOKh9czNL7gZhG9VqeoW35TV2UaJc7gub1Z4WMsIxIrYnHbi+Yvr8F6b E0v0wzJEHloJ0DkP+P0fXZBzdp7eCbucxXD79Fkybo4Hfy4c8jeWnU5IL8dZYb+QqaBQ 4jfaTXiH9dcPDbsGbM4b7o8dp07JMfl0FHZlodMmiyNB2NGgwJCFXscWMUTQe5rlJXZH /QnARmvCFkWHNjhldu5cQjsNY8gjZ1k7k1hO5eibpIzz10H3Uk5lrS9Aju+w/t2K7tg9 +7Cw== X-Gm-Message-State: AOAM533Aysjro5ea0SNuE6B90KlaEITYrhQEz1N8Shb+93D4Cx1xarn3 Q32NjW2kCWpv5rrusiG5JjWqi+McSHZQN6W7JObc/Q== X-Received: by 2002:a17:906:40d1:: with SMTP id a17mr6955098ejk.503.1628938965819; Sat, 14 Aug 2021 04:02:45 -0700 (PDT) MIME-Version: 1.0 References: <20210810204240.4008685-1-ndesaulniers@google.com> In-Reply-To: <20210810204240.4008685-1-ndesaulniers@google.com> From: Naresh Kamboju Date: Sat, 14 Aug 2021 16:32:34 +0530 Message-ID: Subject: Re: [PATCH] Makefile: remove stale cc-option checks To: Nick Desaulniers Cc: Masahiro Yamada , Michal Marek , Nathan Chancellor , Andrew Morton , "Paul E. McKenney" , Peter Zijlstra , Miguel Ojeda , Tetsuo Handa , Vitor Massaru Iha , Sedat Dilek , Daniel Latypov , linux-kbuild@vger.kernel.org, open list , clang-built-linux , Linux-Next Mailing List , Stephen Rothwell , Mark Brown , lkft-triage@lists.linaro.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 Aug 2021 at 02:12, Nick Desaulniers wrote: > > cc-option, cc-option-yn, and cc-disable-warning all invoke the compiler > during build time, and can slow down the build when these checks become > stale for our supported compilers, whose minimally supported versions > increases over time. See Documentation/process/changes.rst for the > current supported minimal versions (GCC 4.9+, clang 10.0.1+). Compiler > version support for these flags may be verified on godbolt.org. > > The following flags are GCC only and supported since at least GCC 4.9. > Remove cc-option and cc-disable-warning tests. > * -fno-tree-loop-im > * -Wno-maybe-uninitialized > * -fno-reorder-blocks > * -fno-ipa-cp-clone > * -fno-partial-inlining > * -femit-struct-debug-baseonly > * -fno-inline-functions-called-once > * -fconserve-stack > > The following flags are supported by all supported versions of GCC and > Clang. Remove their cc-option, cc-option-yn, and cc-disable-warning tests. > * -fno-delete-null-pointer-checks > * -fno-var-tracking > * -mfentry > * -Wno-array-bounds > > The following configs are made dependent on GCC, since they use GCC > specific flags. > * READABLE_ASM > * DEBUG_SECTION_MISMATCH > > --param=allow-store-data-races=0 was renamed to --allow-store-data-races > in the GCC 10 release. [Please ignore this if it is already reported] Linux next 20210813 tag s390 build failed with gcc-8 but pass with gcc-9 and gcc-10. s390 (defconfig) with gcc-8 FAILED s390 (defconfig) with gcc-9 PASS s390 (defconfig) with gcc-10 PASS Build error: ----------- s390x-linux-gnu-gcc: error: unrecognized command line option '-mfentry'; did you mean '--entry'? make[2]: *** [/builds/linux/scripts/Makefile.build:272: scripts/mod/empty.o] Error 1 s390x-linux-gnu-gcc: error: unrecognized command line option '-mfentry'; did you mean '--entry'? make[2]: *** [/builds/linux/scripts/Makefile.build:118: scripts/mod/devicetable-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. Reported-by: Linux Kernel Functional Testing Build log, https://builds.tuxbuild.com/1wfNcaYbsp29k3RvYuPXzxrM4vs/ metadata: -------- git_describe: next-20210813 git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next git_short_log: 4b358aabb93a (\Add linux-next specific files for 20210813\) target_arch: s390 toolchain: gcc-8 Steps to reproduce: ------------------- # TuxMake is a command line tool and Python library that provides # portable and repeatable Linux kernel builds across a variety of # architectures, toolchains, kernel configurations, and make targets. # # TuxMake supports the concept of runtimes. # See https://docs.tuxmake.org/runtimes/, for that to work it requires # that you install podman or docker on your system. # # To install tuxmake on your system globally: # sudo pip3 install -U tuxmake # # See https://docs.tuxmake.org/ for complete documentation. tuxmake --runtime podman --target-arch s390 --toolchain gcc-8 --kconfig defconfig -- Linaro LKFT https://lkft.linaro.org