public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Avoid using obsoleted egrep/fgrep
@ 2022-06-27  6:04 Xi Ruoyao
  2022-06-27  6:07 ` [PATCH v2 1/7] config: use $EGREP instead of egrep Xi Ruoyao
                   ` (6 more replies)
  0 siblings, 7 replies; 18+ messages in thread
From: Xi Ruoyao @ 2022-06-27  6:04 UTC (permalink / raw)
  To: gcc-patches
  Cc: Rainer Orth, Arnaud Charlet, Bernhard Reutner-Fischer, Jonathan Wakely

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(-)

-- 
2.36.1



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-05-11  9:02 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-27  6:04 [PATCH v2 0/7] Avoid using obsoleted egrep/fgrep Xi Ruoyao
2022-06-27  6:07 ` [PATCH v2 1/7] config: use $EGREP instead of egrep Xi Ruoyao
2022-07-05  0:58   ` Hans-Peter Nilsson
2022-07-08  3:46   ` Eric Gallager
2022-06-27  6:09 ` [PATCH v2 2/7] fixincludes: use grep instead of egrep/fgrep Xi Ruoyao
2022-06-27  9:54   ` Eric Gallager
2022-06-27  6:09 ` [PATCH v2 3/7] libbacktrace: use grep instead of fgrep Xi Ruoyao
2022-06-27  9:07   ` Jonathan Wakely
2022-06-27 20:00   ` Ian Lance Taylor
2022-06-27  6:10 ` [PATCH v2 4/7] fortran: " Xi Ruoyao
2023-05-10 19:29   ` Bernhard Reutner-Fischer
2023-05-10 20:02     ` Thomas Koenig
2023-05-11  9:01       ` Pushed: " Xi Ruoyao
2022-06-27  6:11 ` [PATCH v2 5/7] testsuite: stop using obsoleted egrep Xi Ruoyao
2022-06-27  6:50   ` Arnaud Charlet
2022-06-27  6:12 ` [PATCH v2 6/7] contrib: use grep -E instead of egrep Xi Ruoyao
2022-06-27  9:02   ` Jonathan Wakely
2022-06-27  6:14 ` [PATCH 7/7] libffi: Use $EGREP " Xi Ruoyao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).