From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by sourceware.org (Postfix) with ESMTPS id D03CE385840E for ; Mon, 20 Feb 2023 22:22:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D03CE385840E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x1034.google.com with SMTP id v3-20020a17090a6b0300b002341a2656e5so2668329pjj.1 for ; Mon, 20 Feb 2023 14:22:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=JSfWBd8hQDXuEM+THDfSwFVnKwkXoiN/OP+bq0L1w8E=; b=ASnv9R2SswmiVgykN/m4vldn89+NA/Zt4KCtacOQdMksLWo7ckng7ZuGFD8D/laFWN VUsLFyf6/x/26JfZVt1o7zF1Xd0DKaKLR6lKY7oJ/jDeFpzyz37RN9qm7hidMpCeaUrg lKS24N4x5zOQ9GSSG2MyTW6dDQ1RyA2kr7eDZa7jVWEzcafkfF+r1JW590vHPRJAE/QB 59Joa7ut77ezoXCM8vjz+IhsRnrftwYLPtzZTj947Cp9T1kBItcxNQI5zjWC22aFijRw N8NrlwqgqqRJ5GQHZmFnprOOl3R+gJzwAn4pjwAHLjJw0k62riQyF80t7dNKAr30GOcp jBKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JSfWBd8hQDXuEM+THDfSwFVnKwkXoiN/OP+bq0L1w8E=; b=JLLgx0/Ev4SBwrdRHto34kF8hbM6By1WEijIpNGJJUTGZ86oOuJefz8zft7kdrbpT4 jt3E2PfhlBlJztLa0XOlk+2gCf4ls6xd/fS/RMkN1pJzlFpGFffhhbj2MOOWo9zIUnrT sPV22WDcfXxFMIhJYVFjSw2NP2jTtIZEY2GdOwtRVi93n6QVIWgCZu2THEHvdwqX48CS wH9XsQ6ciE4CwS5v5BkhB41PeWLp99YDqrKFa9Mp6pV66GzdrOvivOSysl6eDVZF4fvP kYazc9bdZimV1nNh5LP9MscQ3YxCZkIetq79+t7wLTn0iyCMdYEpXLu7lk3mI7sivZrh 756A== X-Gm-Message-State: AO0yUKVt54xtEf/atV1hQhawijcLdiGUUv39agMachm7VSL/aSuSkc89 Ea/5sq3ZICxbvnVqmdfQtZY= X-Google-Smtp-Source: AK7set9EF4hMjjaW3mjxJ/Trh2Eoa0uXFZVeTcjjY5khr+NQUrIKeOLV931ZUVIDNMxtB2UKeyMAAQ== X-Received: by 2002:a17:903:2846:b0:19b:e73:80a4 with SMTP id kq6-20020a170903284600b0019b0e7380a4mr2096919plb.13.1676931724875; Mon, 20 Feb 2023 14:22:04 -0800 (PST) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id a7-20020a1709027d8700b0019bd934433dsm2011214plm.286.2023.02.20.14.22.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 14:22:04 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 0813B1142769; Tue, 21 Feb 2023 08:52:02 +1030 (ACDT) Date: Tue, 21 Feb 2023 08:52:02 +1030 From: Alan Modra To: Howard Chu Cc: =?iso-8859-1?Q?Cl=E9ment?= Chigot , binutils@sourceware.org Subject: Re: [PATCH v2] ld/testsuite: don't output to /dev/null Message-ID: References: <20230220144302.1234792-1-chigot@adacore.com> <1dc8fbc0-5742-2e53-1ddb-9c4d85b6be9e@symas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1dc8fbc0-5742-2e53-1ddb-9c4d85b6be9e@symas.com> X-Spam-Status: No, score=-3029.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP 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, Feb 20, 2023 at 05:11:47PM +0000, Howard Chu wrote: > Clément Chigot via Binutils wrote: > > Mingw doesn't have /dev/null and thus "-o /dev/null" will fail. > > Currently, all the options are checked using this "-o /dev/null", > > resulting in them being disabled on mingw hosts. > > Fix that by outputting to a real file for all targets. > > Unless you expect that saving the output will be useful, you could simply > set the $fno variable to "nul:" when running on a Windows OS, and leave it > set to "/dev/null" otherwise. Yes you could do that too. I think it's slightly better to run the same command on all hosts, as it avoids the problem of getting the host triple checking correct. -- Alan Modra Australia Development Lab, IBM