Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2398632rwb; Sat, 24 Sep 2022 07:44:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5uuVv7Fv3/6yCS2e4GBEI+1+sLSuDpKAjVD1xQvbI8EPQqIDbRKOPRXtdIdzoLbDRxN+ZE X-Received: by 2002:a17:907:1b1f:b0:72f:56db:cce9 with SMTP id mp31-20020a1709071b1f00b0072f56dbcce9mr10764354ejc.605.1664030666537; Sat, 24 Sep 2022 07:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664030666; cv=none; d=google.com; s=arc-20160816; b=oryf42zggc3zXg6dscJa8/p5jodH5gjf7tlX+bpc4c+JYJxO9OoaXWQjoDcGaboMxm O5wUI9qfDBl7iowLIMkqPcxfrP4Mr2UHiecWC7KLiCSjtcGdQ4rqqrOmChWyyFE3vIny FunW3zIxME+i/y7M5mdX/StCPsfQb4F1DcrWylImvVk2i37lskty1Nvi+rj46tvPyuaE Yt56JKN6RJNHlDPSDkmC5u6oA+WuItw+0ZDoOQkE33jVW7gzziz9MFyEABmdGOtXdnEm gOZd32UrVYv9YK/L2DcYg63Ty5axJQ0lADGQKAqg4LbyuKWO/JyvjWxMtTsvoYkrF4rk +5dA== 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:dkim-filter; bh=WN5SfVJRQHxQx5Ik0fOFCLRbmFwj2uxRFSBKG7Z/Rzs=; b=uA+0+RbrugEHZ0zRDfr5pqaK9peCf6Fv9NQAYM5pgGJq1OaRtrXFLO7ujHZwjAT58s V5oFEmvFCBpJ7mOZVytgzcCGmIpOKvX4dveiJJxrtz2s+aDe8EosCHFN4BWoKkxGwFmc RtB27qGcWWGY5b/fUjB7FzFrgOFAyTfthbx3XPuWUAet1qKLJ/XAcPvHhhPCf4PKgOQF c7wnZVzSKxHdasQWRgeOzF7eR6mLJLVZAyRPg89COQvR7Ie9twcW2gswNaPDKz1R8F24 KeUcg0cat4WncnzjprcI0PpIOFfvpJEpEJ17SrwqlWkPASZ58HhpkNptoDHRhithR7oL +m9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=VZo0vTzC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m10-20020a056402050a00b00456cab58382si4203172edv.242.2022.09.24.07.44.00; Sat, 24 Sep 2022 07:44:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=VZo0vTzC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230411AbiIXO3j (ORCPT + 99 others); Sat, 24 Sep 2022 10:29:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbiIXO3i (ORCPT ); Sat, 24 Sep 2022 10:29:38 -0400 Received: from conssluserg-01.nifty.com (conssluserg-01.nifty.com [210.131.2.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 879515FBC for ; Sat, 24 Sep 2022 07:29:35 -0700 (PDT) Received: from mail-oo1-f54.google.com (mail-oo1-f54.google.com [209.85.161.54]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 28OETF8Q016655 for ; Sat, 24 Sep 2022 23:29:16 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 28OETF8Q016655 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1664029756; bh=WN5SfVJRQHxQx5Ik0fOFCLRbmFwj2uxRFSBKG7Z/Rzs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VZo0vTzCf24dRdtmm0jZzwU4gNcp9x/69MQPbP1sJCOw/6I/fyH25PSJphc8FSRzd ZT2WGyPMDPhddAUwJYdL1OO13zEfBTt0AJOGOLXjVupiMMGPKG/3DYgIuVFvlZyZY9 r20OmYjwyzBwdTU1CeixMut6r19kHgVfeGKHr0WBX0eAdRKhw/S8/9VmGF5KpOr8bY VyzJzb+QFM5cFyZ5Pv4iMf7mH6w8nYuWbtsm1k3geSLQLUpPGDAA44zRaj7l00PLf/ AzE0bh3OVrYYdZoSqsDma1IeNXWZ3pV9GU2pbb2iMPIRd+Piddit+n4dnLLDmH0BrI m9ishjlgum9zA== X-Nifty-SrcIP: [209.85.161.54] Received: by mail-oo1-f54.google.com with SMTP id t4-20020a4aa3c4000000b00475624f2369so467915ool.3 for ; Sat, 24 Sep 2022 07:29:15 -0700 (PDT) X-Gm-Message-State: ACrzQf0oczJNZWJgpnbSRfV4jS84jaWLPYBPPcFO5cPzSPG+ImyudwXY HwQuosuyeR3r+0Yi1tIUhglgOQDfmYnfGjg/ZN4= X-Received: by 2002:a05:6820:1992:b0:475:c2c0:3f92 with SMTP id bp18-20020a056820199200b00475c2c03f92mr5517770oob.96.1664029754974; Sat, 24 Sep 2022 07:29:14 -0700 (PDT) MIME-Version: 1.0 References: <20220919170828.3718437-1-ndesaulniers@google.com> In-Reply-To: From: Masahiro Yamada Date: Sat, 24 Sep 2022 23:28:38 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4] Makefile.compiler: replace cc-ifversion with compiler-specific macros To: Nick Desaulniers Cc: Michal Marek , Linux Kernel Mailing List , clang-built-linux , Bill Wendling , Nathan Chancellor Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 24, 2022 at 4:44 AM Masahiro Yamada wrote: > > On Tue, Sep 20, 2022 at 2:08 AM Nick Desaulniers > wrote: > > > > cc-ifversion is GCC specific. Replace it with compiler specific > > variants. Update the users of cc-ifversion to use these new macros. > > > > Link: https://github.com/ClangBuiltLinux/linux/issues/350 > > Link: https://lore.kernel.org/llvm/CAGG=3QWSAUakO42kubrCap8fp-gm1ERJJAYXTnP1iHk_wrH=BQ@mail.gmail.com/ > > Suggested-by: Bill Wendling > > Reviewed-by: Nathan Chancellor > > Signed-off-by: Nick Desaulniers > > --- > > Changes v3 -> v4: > > * Split into its own patch again from series, as per Masahiro. > > * Rebase on top of b0839b281c427e844143dba3893e25c83cdd6c17 and update > > clang -Wformat logic in scripts/Makefile.extrawarn, as per Masahiro. > > > Applied to linux-kbuild. > Thanks. > > > > -- > Best Regards > Masahiro Yamada I noticed a small flaw now. $ make mrproper; make /bin/sh: 1: [: -ge: unexpected operator *** *** Configuration file ".config" not found! *** *** Please run some configurator (e.g. "make oldconfig" or *** "make menuconfig" or "make xconfig"). *** Makefile:711: include/config/auto.conf.cmd: No such file or directory make: *** [Makefile:720: .config] Error 1 This fails anyway, but it shows annoying /bin/sh: 1: [: -ge: unexpected operator It is emit by this line: KBUILD_CFLAGS-$(call gcc-min-version, 90100) += -Wno-alloc-size-larger-than When $(CONFIG_GCC_VERSION) is empty, it becomes invalid shell code: [ -ge $(1) ] && echo y Now I just recalled why I wrote the original code like this: cc-ifversion = $(shell [ $(CONFIG_GCC_VERSION)0 $(1) $(2)000 ] ... -- Best Regards Masahiro Yamada