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

-- 
2.36.1


Reply via email to