From patchwork Mon Jun 27 06:04:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xi Ruoyao X-Patchwork-Id: 1648728 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=oj5Z4XzC; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LWcdv1yCzz9sGm for ; Mon, 27 Jun 2022 16:05:22 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ADAB4386DC52 for ; Mon, 27 Jun 2022 06:05:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ADAB4386DC52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1656309919; bh=ltdvs2RogrMUrk4W+aFlch+BgEu1VS9wmCCdm6KwZr8=; h=Subject:To:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=oj5Z4XzCD1+lD0hBJTm4c9cqozbaZNbniT9t7cokRE0hU+qr3XBPBYC7eVGxvGAQK Jbh1veLxslnH6IiQgtxcCc8181xRYiJ4b2vrVy87CxpQ3t+jUTd7JEyHXBTILAcEcj tbXahZcd8hgwfyW6J+XQrgUZVYxUFYzSLxD7T18I= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 87B27385740D for ; Mon, 27 Jun 2022 06:04:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 87B27385740D Received: from [192.168.124.21] (unknown [113.140.11.126]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 3F7A466807; Mon, 27 Jun 2022 02:04:57 -0400 (EDT) Message-ID: Subject: [PATCH v2 0/7] Avoid using obsoleted egrep/fgrep To: gcc-patches@gcc.gnu.org Date: Mon, 27 Jun 2022 14:04:53 +0800 User-Agent: Evolution 3.44.2 MIME-Version: 1.0 X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP, LIKELY_SPAM_FROM, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_PASS, SPF_PASS, TXREP, T_PDS_OTHER_BAD_TLD, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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-Patchwork-Original-From: Xi Ruoyao via Gcc-patches From: Xi Ruoyao Reply-To: Xi Ruoyao Cc: Bernhard Reutner-Fischer , Jonathan Wakely Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" egrep and fgrep have been deprecated for a long time, and the next grep release will emit a warning if egrep or fgrep is invoked: https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a951562 To prevent us from a lot of these warnings in the future, we should stop using egrep and fgrep. These patches will remove most of the use of egrep or fgrep from GCC building system. I've not touched libgo because I'm not familiar with it. And, for contrib/gen_auto_fdo_event.py and gcc/config/i386/gcc-auto-profile I'll submit a patch porting gen_auto_fdo_event.py to Python 3 and regenerate gcc-auto-profile separately and include the egrep fix in that patch. Bootstrapped and regtested on x86_64-linux-gnu and sparc-sun-solaris2.11 (gcc211.fsffrance.org, where grep does not support -E and autoconf sets EGREP="ggrep -E"). Xi Ruoyao (7): config: use $EGREP instead of egrep fixincludes: use grep instead of egrep/fgrep libbacktrace: use grep instead of fgrep fortran: use grep instead of fgrep testsuite: stop using obsoleted egrep contrib: use grep -E instead of egrep libffi: Use $EGREP instead of egrep config.rpath | 10 +- config/lib-ld.m4 | 6 +- config/lib-link.m4 | 4 +- configure | 136 ++++++++++++++- configure.ac | 5 +- contrib/check_GNU_style.sh | 10 +- contrib/test_summary | 13 +- contrib/warn_summary | 13 +- fixincludes/fixinc.in | 2 +- fixincludes/fixincl.x | 10 +- fixincludes/genfixes | 2 +- fixincludes/inclhack.def | 6 +- gcc/Makefile.in | 1 + gcc/ada/gcc-interface/Make-lang.in | 3 +- gcc/configure | 80 ++++++++- gcc/configure.ac | 1 + gcc/fortran/Make-lang.in | 2 +- gcc/testsuite/ada/acats/run_all.sh | 8 +- gcc/testsuite/go.test/go-test.exp | 2 +- intl/configure | 9 +- libbacktrace/configure | 2 +- libbacktrace/configure.ac | 2 +- libcpp/configure | 9 +- libffi/configure | 270 ++++++++++++++--------------- libffi/configure.ac | 3 +- libgcc/configure | 2 +- libstdc++-v3/configure | 9 +- 27 files changed, 430 insertions(+), 190 deletions(-)