From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id 8043D386DC7E for ; Mon, 27 Jun 2022 06:50:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8043D386DC7E Received: by mail-ej1-x629.google.com with SMTP id u15so16983810ejc.10 for ; Sun, 26 Jun 2022 23:50:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1QDeYkZqhcVMmUBupa983jddx2WAAgzYUlVQ1sc7BeA=; b=w3ih7LmWlJ43jPFJpGifKeZ5AuynTBqdu/sTs75Xu4z697SE3Uzy7Xt5YMC8qOwyux NyTQv4EGjrUcwWjnMTlvEZY/4pRH+I9DoLMbn+AsZoLpDeDFfJplod2bXJlvMtDbbHHl CA834NCB2ueKsLhCGoQCooKGFyS2A5SZZrmPx64cW2eAytgnU6JsvuFDPgm1LW3bOMoB FEDbS2JufceN5rdKDsj/AFRR1oTewc7TitZGrQ/32toxBzLJoLxL8WZzva2a5ABPVWT2 Lsak8dBHOrooAK9SXXHGKTsI1oTGUpmaPQDsxb6ZYqCIEg8gk74emFzxas1sfGh4PzHS e36g== X-Gm-Message-State: AJIora9Hqgxa8BiPSR9lRvk3JMq6f+HhUhG9h/USTEgbYiKnxIpgAgxi 0D7jPPOSMdVQO7/+JSEAhHkXCA== X-Google-Smtp-Source: AGRyM1tQlh9oUeDV64xZfmIQlBex8zv/NPh1xvflZUi0ZN8Io7kETHAtmxsxfLBdqpn3KiBkF9RL1g== X-Received: by 2002:a17:907:8c05:b0:726:2a09:c951 with SMTP id ta5-20020a1709078c0500b007262a09c951mr11220572ejc.143.1656312627206; Sun, 26 Jun 2022 23:50:27 -0700 (PDT) Received: from localhost ([45.147.211.82]) by smtp.gmail.com with ESMTPSA id k18-20020a056402049200b0042dcbc3f302sm5602410edv.36.2022.06.26.23.50.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Jun 2022 23:50:26 -0700 (PDT) Date: Mon, 27 Jun 2022 06:50:26 +0000 From: Arnaud Charlet To: Xi Ruoyao Cc: gcc-patches@gcc.gnu.org, Rainer Orth , Arnaud Charlet , Bernhard Reutner-Fischer , Jonathan Wakely Subject: Re: [PATCH v2 5/7] testsuite: stop using obsoleted egrep Message-ID: <20220627065026.GA1458322@adacore.com> References: <51908ccd68c022910f59a904556483c123ae428c.camel@xry111.site> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <51908ccd68c022910f59a904556483c123ae428c.camel@xry111.site> X-Spam-Status: No, score=-4.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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2022 06:50:32 -0000 > egrep has been deprecated in favor of grep -E for a long time, and the > next grep release (3.8 or 4.0) will print a warning of egrep is used. > Stop using egrep so we won't see the warning. > > However, simply replacing egrep with grep -E will break build on some > systems (notably Solaris) w/o a POSIX-conform grep. We detect a > suitable command with AC_PROG_EGREP, and pass it to run_acats.sh for > Ada. > > For Go, simply use grep instead of egrep as the pattern does not need > any ERE features. > > gcc/ChangeLog: > > * Makefile.in (EGREP): New variable. > * configure.ac (AC_PROG_EGREP): Call it. > * configure: Regenerate. > > gcc/ada/ChangeLog: > > * gcc-interface/Make-lang.in: Pass EGREP to run_acats.sh. The Ada change is OK Arno