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