From patchwork Fri Jun 24 06:57:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xi Ruoyao X-Patchwork-Id: 1647660 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=TTmgBH+1; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (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 4LTnzG52hnz9s5V for ; Fri, 24 Jun 2022 16:59:06 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 921163852760 for ; Fri, 24 Jun 2022 06:59:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 921163852760 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1656053944; bh=vagASYTbK+Pq2JGLxSByoyVCCp/k0pdcUTS9G1KiwfU=; h=Subject:To:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=TTmgBH+1QHC9Zbq2kv6FRscCmlKUaNJdaAUVTqJUMlLzI9EVBGj8PtqxccD1WGaz5 X1iveGUAV8O4wVUu0JtEpFf8cFKVVf5ZIrfoLjxWXDcVue2YYR4jXwEqfxEYXfMRri dyfRp8tHPkenjxxPG/+Q/3SLDTdzzKKijXQ6T3QM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by sourceware.org (Postfix) with ESMTPS id B85F7384D189 for ; Fri, 24 Jun 2022 06:57:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B85F7384D189 Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (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 5BDC166923 for ; Fri, 24 Jun 2022 02:57:29 -0400 (EDT) Message-ID: <74ea0c62ebe19db186263053e4051f81d46e9da4.camel@xry111.site> Subject: [PATCH 0/8] Stop using obsoleted egrep/fgrep To: gcc-patches@gcc.gnu.org Date: Fri, 24 Jun 2022 14:57:27 +0800 User-Agent: Evolution 3.44.2 MIME-Version: 1.0 X-Spam-Status: No, score=1.6 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, PDS_OTHER_BAD_TLD, SPF_HELO_PASS, SPF_PASS, TXREP, 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 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. The remaining: * The configure scripts generated by autoconf-2.69 will still refer to "egrep", but they will try "grep -E" first and only try egrep when "grep -E" is not available. * libgo: Left for Ian because I'm not familiar with it. * maintainer-scripts/update_web_docs_libstdcxx_git: Left for Jonathan because I don't think other people will invoke it. * libffi: Already submitted https://github.com/libffi/libffi/pull/720. * contrib/gen_autofdo_event.py and gcc/config/i386/gcc-auto-profile: I'll make a patch later (now download.01.org seems down so I can't test or regenerate gcc-auto-profile) porting gen_autofdo_event.py to Python 3. Xi Ruoyao (8): config: use grep -E instead of egrep fixincludes: use grep -E/-F instead of egrep/fgrep libstdc++: use grep -E instead of egrep in scripts libbacktrace: use grep -F instead of fgrep intl: stop using fgrep for exgettext fortran: use grep -F instead of fgrep testsuite: use grep -E instead of egrep contrib: use grep -E instead of egrep config.rpath | 8 ++++---- config/lib-ld.m4 | 4 ++-- configure | 4 ++-- configure.ac | 4 ++-- contrib/check_GNU_style.sh | 10 +++++----- contrib/test_summary | 2 +- contrib/warn_summary | 2 +- fixincludes/fixinc.in | 2 +- fixincludes/fixincl.x | 10 +++++----- fixincludes/genfixes | 2 +- fixincludes/inclhack.def | 6 +++--- gcc/configure | 8 ++++---- gcc/fortran/Make-lang.in | 2 +- gcc/po/exgettext | 2 +- gcc/testsuite/ada/acats/run_all.sh | 2 +- gcc/testsuite/go.test/go-test.exp | 2 +- intl/configure | 4 ++-- libbacktrace/configure | 2 +- libbacktrace/configure.ac | 2 +- libcpp/configure | 4 ++-- libgcc/configure | 2 +- libstdc++-v3/configure | 4 ++-- libstdc++-v3/scripts/extract_symvers.in | 4 ++-- libstdc++-v3/scripts/run_doxygen | 4 ++-- 24 files changed, 48 insertions(+), 48 deletions(-)