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: 55056 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ECA69386DC70 for ; Mon, 27 Jun 2022 06:05:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ECA69386DC70 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1656309929; 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=AJY/nL4Mfc8EZwxknnk7Z7yIZmFrNKtnh7BO+LZfwDVoD8KYAjqAD/Qk37CwuAP39 Mc1NfGq5bdexP74rm+LWvAwh4hxBYQht2f+4fnDBOvKoWURJOa6A9efEfqmYmK7JOQ OCfdTSEpkd0vk71nVM7yA3LrgH26zVrM/eL4hLeI= 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+patchwork=sourceware.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(-)