egrep in binutils
authorAlan Modra <amodra@gmail.com>
Wed, 28 Sep 2022 04:07:31 +0000 (13:37 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 28 Sep 2022 04:07:31 +0000 (13:37 +0930)
commit67d1991b785bdfef1d70cddfa0202b99b43ccce9
tree126c4d66207af2518fa7c9ceeade0ce7625278be
parentf8a8e1b263752d558c79f33ca0730ca23fb4450b
egrep in binutils

Apparently some distros have a nagging egrep that helpfully tells you
egrep is deprecated and to use "grep -E".  The nag message causes a ld
testsuite failure.  What's more the advice isn't that good.  The "-E"
flag may not be available with older versions of grep.

This patch fixes bare invocation of egrep within binutils, replacing
it with the autoconf $EGREP or with grep.

config/
* lib-ld.m4 (AC_LIB_PROG_LD_GNU): Require AC_PROG_EGREP and
invoke $EGREP.
(AC_LIB_PROG_LD): Likewise.
binutils/
* configure: Regenerate.
* embedspu.sh: Replace egrep with grep.
gold/
* testsuite/Makefile.am (flagstest_compress_debug_sections.check):
Replace egrep with grep.
* testsuite/Makefile.in: Regenerate.
* testsuite/bnd_ifunc_1.sh: Replace egrep with $EGREP.
* testsuite/bnd_ifunc_2.sh: Likewise.
* testsuite/bnd_plt_1.sh: Likewise.
* testsuite/discard_locals_test.sh: Likewise.
* testsuite/gnu_property_test.sh: Likewise.
* testsuite/no_version_test.sh: Likewise.
* testsuite/pr18689.sh: Likewise.
* testsuite/pr26936.sh: Likewise.
* testsuite/retain.sh: Likewise.
* testsuite/split_i386.sh: Likewise.
* testsuite/split_s390.sh: Likewise.
* testsuite/split_x32.sh: Likewise.
* testsuite/split_x86_64.sh: Likewise.
* testsuite/ver_test_pr16504.sh: Likewise.
intl/
* configure: Regenerate.
ld/
* testsuite/ld-elfvers/vers.exp (test_ar): Replace egrep with grep.
21 files changed:
binutils/configure
binutils/embedspu.sh
config/lib-ld.m4
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/bnd_ifunc_1.sh
gold/testsuite/bnd_ifunc_2.sh
gold/testsuite/bnd_plt_1.sh
gold/testsuite/discard_locals_test.sh
gold/testsuite/gnu_property_test.sh
gold/testsuite/no_version_test.sh
gold/testsuite/pr18689.sh
gold/testsuite/pr26936.sh
gold/testsuite/retain.sh
gold/testsuite/split_i386.sh
gold/testsuite/split_s390.sh
gold/testsuite/split_x32.sh
gold/testsuite/split_x86_64.sh
gold/testsuite/ver_test_pr16504.sh
intl/configure
ld/testsuite/ld-elfvers/vers.exp