Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp558208pxb; Mon, 16 Aug 2021 11:39:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhHbbwvfXsMp3zqfYODgazm8ppn1+MlGErZ79ZKcKTd2yAS/2NYOzAin7c1W4u3EfERw0W X-Received: by 2002:a02:90d0:: with SMTP id c16mr45863jag.106.1629139160241; Mon, 16 Aug 2021 11:39:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629139160; cv=none; d=google.com; s=arc-20160816; b=eSD6n7T0RDZ0l1N+BLsqqzM8MWa5tq7BfpRfXvnVvQcckXTxr0paK10a2zGmuoTJUD LsS1RqehW588VjGeijwp1gkQ3T6ERSzH90UQAj3cxxjvEuwlgZlO6GT0S7EmWbL3NOoU TnJIx0aK7+TB6i14oCmz7SRWXOC6K87tGCFhlVb1iDZzwcEbuhUQY5LLh9DgMZ384gaU fNfuqnp0W3OMUGeg5pERDmYfT8u/0LEFaRDR+afQA3TTGU/jshtu0+95yzj5IpGPudBJ 1kKF6PNOyW7uap1OsvTRsvyrsiBZ146vUok8JmpvwOUh+BhTDGxAnKioo9BsHyaApQG7 tQHg== 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=XndSTNBGC/OVGDPTeJO5zkDBc6MmDsbiG3f/bm1ches=; b=f4PhODpQDY+nL5jRdtskN06MPwf5GV/Pl8GZZKBcBjSZo7bi13q52LjCWSnDqbHBae 7ueCSnabi/yBa6TMmAkDFhwCBMD02eEKsML2ANgRsWUxo+z39RMlxxl3RPEGVe8Nxb8S drePag6BSQZMqmx/LiCMlWjGGBEZKqVGOKAKnJkngTT3B6fTvXKfAuP4k+KsI+4g8eBF b22UIPO/5dcFCPwjTAPqL7ekr8NjkWRIJfISH7wIa54Kqxlsq04eIiA1GQ+LpZ0kTcS0 zqte9Mqn4lTWRf/s7kpoWlQjdtdhKeaeMbP70nLR/LDAueo+Ef5kCBSv1Di0KvQZYsYM Ixbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=clzrAfCZ; 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 d17si11332931ilf.150.2021.08.16.11.39.08; Mon, 16 Aug 2021 11:39:20 -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=@google.com header.s=20161025 header.b=clzrAfCZ; 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 S232065AbhHPSiN (ORCPT + 99 others); Mon, 16 Aug 2021 14:38:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231439AbhHPSiI (ORCPT ); Mon, 16 Aug 2021 14:38:08 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87049C0613C1 for ; Mon, 16 Aug 2021 11:37:36 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id h11so28625211ljo.12 for ; Mon, 16 Aug 2021 11:37:36 -0700 (PDT) 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=XndSTNBGC/OVGDPTeJO5zkDBc6MmDsbiG3f/bm1ches=; b=clzrAfCZGa3epa+0RLcPiQ4pi+6Gx2p6G43vR036knzDySj2wP8xKyxaBq39YlRTzJ 3pEBUaA80Qkoy/SavugPvt70guj0agCPXW5EDqiYtBqYIcdla6Ma9fTVrlaSjb6u8IDo HG4VZ7AfeXb4XRWmn05hGtvmg0u+J9+hAWrWbtb0O7MYdJApBjCzf8MgsGP4iByf24qv ftePr9bpnqdl0nuwour04fZa2b0LQ11bRt83wgbjaryUH6o1ALB9eS7Qi4ZUySBEYHCq 3s8wCUv9obZhqu0uIs7r0jhmI1w9ALjMbjG0YIG4xEdjxg8ldHHmXIM2JEv8c1fmATVN jazw== 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=XndSTNBGC/OVGDPTeJO5zkDBc6MmDsbiG3f/bm1ches=; b=BH8Bu8nz8pG+hSUnYGJ+W+pg61lBhECSp08FNI/S/E3DWzPN8Cth5A3pJ4QLIpAdXH YY973GiQfI7VgxWZsY4/k6oV5svL8zWfTb8D3miikufGVDbKdINquUpaPxiyDexxtGz2 vpYkQP9jL2WNl2XviH6WGLK4r/4WIRThNdg1TGsS2LN/5tRvtNy1G5rBes+WqFsTy3CN coRTjIvqQ4df3jlw0KnhMUkgJ42ywcOTYAzMnZokmTkwgEVahQAc2al6X1LfA8W7RGyv ivTo0q2MALSblhHmXA9QKdxvdwCikAv2maw2tYoU3+i20jifyrp4qozOJqDyv8ur7Qj+ 6iew== X-Gm-Message-State: AOAM531+iOqCVsdSkuMLbdHQotAY49951RaVV0hCAkBClbzn7i/JL0zc R5Ki0sK4OfAJWA6METjimvf0ISIh+0wQLs81lOiSLA== X-Received: by 2002:a2e:9ec1:: with SMTP id h1mr48136ljk.0.1629139054576; Mon, 16 Aug 2021 11:37:34 -0700 (PDT) MIME-Version: 1.0 References: <20210810204240.4008685-1-ndesaulniers@google.com> In-Reply-To: From: Nick Desaulniers Date: Mon, 16 Aug 2021 11:37:23 -0700 Message-ID: Subject: Re: [PATCH] Makefile: remove stale cc-option checks To: Naresh Kamboju 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 Sat, Aug 14, 2021 at 4:02 AM Naresh Kamboju wrote: > > 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 Thanks for the report. Andrew has dropped the patch from mm-next. Looks like it's too soon to remove build configuration tests for -mfentry. > > 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 > > -- > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group. > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/CA%2BG9fYtPBp_-Ko_P7NuOX6vN9-66rjJuBt21h3arrLqEaQQn6w%40mail.gmail.com. -- Thanks, ~Nick Desaulniers