Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5201434rwb; Tue, 6 Sep 2022 21:38:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR4QLcZyK9msq0aX/mPioeXEUVhsbPuy8efbZoayodObgL0HEYMzqqxmUCc838iMWXNwp+5V X-Received: by 2002:a17:902:e5cd:b0:176:ad01:ab47 with SMTP id u13-20020a170902e5cd00b00176ad01ab47mr1885936plf.133.1662525505098; Tue, 06 Sep 2022 21:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662525505; cv=none; d=google.com; s=arc-20160816; b=LsoFicY9tu2PSNNzj8lw0egM8ksG2QG+fofes7u55kOQnflS0uaiVK8HKPChJbtE82 kxoaJD8lnhAqORd0XLo17yrCj5xP+u82Y0JEdSuo0Ve0KUEgft2rJWPgQXCEk3yCgasA ZPeqoYhluIbbr//fmhX/zCy0hnys/7h+nRQJIaQ8to9AgCqDfG40OpS42jkIZ312fXde AlUNME9wKoN3derquVbQG5NsekXycBUhrjHqYcU+CcBzA57oDO9vCfWgE/oFC3QgNzu5 i74YXPLnhiB1JefyARzIkUv0Ikpw1VIbKPQ5j/TKKiYs5WrkSechJZYtrciEudu1q8LP liIQ== 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=0hTBLT8N18H/BI5SDUzZKCK5eLhcJNLu+ZRFya2Xhg8=; b=JrbBRGyG6AzgSBtM8b5mfk90qC9qIi0z4qxq52WoVrNRx4pF6trvLzanmBqBCq8Uiy Y5j1PlmqEpt1kJXAkf6U9A+YEVt4XWqgIjZQcfpjfx59658jpR6aZw4uwk//mymY6JUP l/q30H5EpZwBL4lsRhBlY6H4IInTUuHIZpOm+0RVpCaH3EiFLcUrLgUD9/XT6UlGW8id 2olhLwasZr+OIIAzrugGteY50fbAcWfnz1AsOaSGiTeFmZqwxMwepTmoY9TdvI1JRzvG rSxVM/tEESeP2yEZoJPlk2zx3A0tP4MrvvmXT03IfW+tOOQAmNzzqXRB5DbZw05l2GRS VUaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=jcefueL0; 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 d5-20020a170902cec500b00176ae5c0f3bsi8346572plg.379.2022.09.06.21.38.13; Tue, 06 Sep 2022 21:38:25 -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=jcefueL0; 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 S229437AbiIGEPR (ORCPT + 99 others); Wed, 7 Sep 2022 00:15:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbiIGEPN (ORCPT ); Wed, 7 Sep 2022 00:15:13 -0400 Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 133FB8274A; Tue, 6 Sep 2022 21:15:11 -0700 (PDT) Received: from mail-oa1-f52.google.com (mail-oa1-f52.google.com [209.85.160.52]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 2874Em80017335; Wed, 7 Sep 2022 13:14:49 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 2874Em80017335 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1662524089; bh=0hTBLT8N18H/BI5SDUzZKCK5eLhcJNLu+ZRFya2Xhg8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jcefueL0JvqinQJe5NOVxG01SEwbq3bwWY/zq0BoaN7T6h+bC3QJoxNANDud3/YTC IvLjMt14vtpAhyrU9Ub/nmdn0VjYgg4MTpJxpxY4cXIfo5Uceyrryejza+bl/uyY/Q vX7qCduKcLcDA6kG3rh9L2+r3z4eqwneZNnP/9sWu6mfP9H29W2GywFC+VlPkxFb/d 8P3Z+6MPXaxviL0KpGT7cwCvRGAEBnlJmYvUyFRIohXcygTo7JiTzeSIAGBkRwIgZi 5xnPoxYk3L9WYXEqzE7yTlU4eIjC+NLEkjJb4SbTNS+0VP+FVzOPfPr6dcFN7+2jCe ywMd18PANee6A== X-Nifty-SrcIP: [209.85.160.52] Received: by mail-oa1-f52.google.com with SMTP id 586e51a60fabf-1225219ee46so33271572fac.2; Tue, 06 Sep 2022 21:14:49 -0700 (PDT) X-Gm-Message-State: ACgBeo1QRjjTYSn1ZONMa1GOPs832aqKPhIJ7OpOOs7DepofoFThBayG gGLOyUzIHy71z+Y0AqxfjXJgKoJ0zpGw8pMU0fc= X-Received: by 2002:a05:6808:90a:b0:34b:826c:6116 with SMTP id w10-20020a056808090a00b0034b826c6116mr5927986oih.194.1662524087917; Tue, 06 Sep 2022 21:14:47 -0700 (PDT) MIME-Version: 1.0 References: <20220831184408.2778264-1-ndesaulniers@google.com> <20220831184408.2778264-3-ndesaulniers@google.com> In-Reply-To: From: Masahiro Yamada Date: Wed, 7 Sep 2022 13:14:10 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/5] Makefile.compiler: Use KBUILD_AFLAGS for as-option To: Nathan Chancellor Cc: Nick Desaulniers , Michal Marek , Tom Rix , Linux Kbuild mailing list , Linux Kernel Mailing List , clang-built-linux , X86 ML , Dmitrii Bundin , Fangrui Song , Alexey Alexandrov , Bill Wendling , Greg Thelen 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, T_SCC_BODY_TEXT_LINE 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 Wed, Sep 7, 2022 at 1:08 AM Nathan Chancellor wrote: > > On Mon, Sep 05, 2022 at 06:09:28PM +0900, Masahiro Yamada wrote: > > On Thu, Sep 1, 2022 at 4:53 AM Nathan Chancellor wrote: > > > > > > On Wed, Aug 31, 2022 at 11:44:05AM -0700, Nick Desaulniers wrote: > > > > as-instr uses KBUILD_AFLAGS, but as-option uses KBUILD_CFLAGS. This can > > > > cause as-option to fail unexpectedly because clang will emit > > > > -Werror,-Wunused-command-line-argument for various -m and -f flags for > > > > assembler sources. > > > > > > Now that I am looking closer at it, where does that '-Werror' come from? > > > > The related commit is > > c3f0d0bc5b01ad90c45276952802455750444b4f > > > > The previous discussion with Arnd is > > https://lore.kernel.org/linux-kbuild/20170314213724.3836900-1-arnd@arndb.de/ > > Right, although this is for cc-option, not as-option, no? Sorry, I misunderstood your comments. My reference is about -Werror in cc-option. It is unrelated to as-option. You are right. Currently, as-option takes KBUILD_CFLAGS instead of KBUILD_AFLAGS. The '-Werror,' of -Werror,-Wunused-command-line-argument presumably came from CONFIG_WERROR. -- Best Regards Masahiro Yamada