From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id 948BD3858C66 for ; Mon, 31 Jul 2023 15:50:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 948BD3858C66 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-3179ed1dfbbso1389242f8f.1 for ; Mon, 31 Jul 2023 08:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1690818612; x=1691423412; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=B/lKLNpnvBsw5td7gIogmxvlh6rcsqAsiS1lLJYSJGI=; b=ORIMT570pKom/XH7e7YP6OdX7lty1AKaFhzuFnY3iQ8LVFskeXGC1b+7JcGyASqcLQ cZnuCXSX/lT+3yGvT40Hz6+WkgaMonadWWu1XUMe2ejIRqAeTdZmPt71lFp/U8BRi3xJ lRkSYONmsa7t+r1rI/u/is+j41Yu5dcxkePz+H0NVsX6wbsiTnW3jZBP4TNh5GvNSy4p bYGpERaV93sYRCEa76THVR8a9p3MnvJ726GwSScTQ3BPgf9IaqLSqE1LsMibwwS1QJVD zUD8i1qd63Mb/2udj00RkKfyHLGlH2oSN8Dj/fZd3xCHMrOriK62k2tvKPrjchLlk5Dc eyhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690818612; x=1691423412; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=B/lKLNpnvBsw5td7gIogmxvlh6rcsqAsiS1lLJYSJGI=; b=AA5/WfEtbU6H91JgirS/JIq1xcOtBYLQQeCKhJYquML4JYGilorsgPk/CnBjkbLIuM GfJL6dll2Db3piUO0SU5e0jGfPTJwkfXEGnZlY0m48fYGcktnzFC4i3+BcK2kH9DqYhF GLSAN/ccAGlnRSGuY71nPlJVvSoSJbQkXn1IjQ1ZxspLUSMZHEp/6K+x4xVqjhIEN1yl 8ECrGpsVHEGc+hMt7oUYjv8E73PAAFIBvI9g71/xJxA6BlK9ghVtK6W/jMWakmRQll8I XcSGhVtGFRHvSmMZXC1XQ9P9gdbVHGJ9oabadJ0AuKDPLa8fYFe4GZF//0tB0PLBoPxt L39w== X-Gm-Message-State: ABy/qLZFLeAQefk+qSsh/UXDKGNJQuzcoEoWQ2rqhtaTPayhebO7NnEm g0SWPvZ3goENWalASIps7re0xA== X-Google-Smtp-Source: APBJJlHHF72SCheL9HDsCnyQMtQQ4l3ebsuELs962OOO5vuvYIGBefHsF+y41iSVoofYD0O1jqTShg== X-Received: by 2002:adf:df02:0:b0:311:1b8a:b70e with SMTP id y2-20020adfdf02000000b003111b8ab70emr154707wrl.66.1690818611627; Mon, 31 Jul 2023 08:50:11 -0700 (PDT) Received: from tpp.orcam.me.uk (tpp.orcam.me.uk. [2001:8b0:154:0:ea6a:64ff:fe24:f2fc]) by smtp.gmail.com with ESMTPSA id e40-20020a5d5968000000b0031431fb40fasm13385529wri.89.2023.07.31.08.50.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Jul 2023 08:50:11 -0700 (PDT) Date: Mon, 31 Jul 2023 16:50:09 +0100 (BST) From: "Maciej W. Rozycki" To: Kito Cheng cc: Kito Cheng , juzhe.zhong@rivai.ai, gcc-patches , Robin Dapp , "pan2.li" Subject: Re: [PATCH] RISC-V: Return machine_mode rather than opt_machine_mode for get_mask_mode, NFC In-Reply-To: Message-ID: References: <20230731065228.69779-1-kito.cheng@sifive.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon, 31 Jul 2023, Kito Cheng wrote: > > I just configure with `--enable-werror-always', which we want to keep > > our standards up to anyway, > > I rely on the host GCC which is 11 relatively old compared to the > trunk, so --enable-werror-always will get many -Wformat* warning :( If building a cross-compiler for upstream submissions or regression runs I always bootstrap a native compiler of the same checkout first and then use it for the build. I think it's good practice, and it's needed for the Ada frontend anyway. That's one way to avoid introducing warnings by chance, and it takes less than an hour to bootstrap native GCC on decent contemporary hardware (and then you don't have to be pedantic, and neither I am, and you can keep reusing an older native build for some time). Maciej