diff options
author | Sam James <sam@gentoo.org> | 2022-06-05 12:09:02 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2022-06-05 12:09:02 -0700 |
commit | 7df596a58cdfa763924487b8c275269de3497304 (patch) | |
tree | 7b2762ba7b12c0ed07d63cd14109305af04f4cf8 /sysdeps/i386/tst-ld-sse-use.sh | |
parent | 3c23fa9f44fe88d0851e1344fc37ba60e74cb0fc (diff) | |
download | glibc-7df596a58cdfa763924487b8c275269de3497304.tar.gz glibc-7df596a58cdfa763924487b8c275269de3497304.tar.xz glibc-7df596a58cdfa763924487b8c275269de3497304.zip |
grep: egrep -> grep -E, fgrep -> grep -F
Newer versions of GNU grep (after grep 3.7, not inclusive) will warn on 'egrep' and 'fgrep' invocations. Convert usages within the tree to their expanded non-aliased counterparts to avoid irritating warnings during ./configure and the test suite. Signed-off-by: Sam James <sam@gentoo.org> Reviewed-by: Fangrui Song <maskray@google.com>
Diffstat (limited to 'sysdeps/i386/tst-ld-sse-use.sh')
-rwxr-xr-x | sysdeps/i386/tst-ld-sse-use.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/i386/tst-ld-sse-use.sh b/sysdeps/i386/tst-ld-sse-use.sh index 90000b7fac..1d2c87f4e7 100755 --- a/sysdeps/i386/tst-ld-sse-use.sh +++ b/sysdeps/i386/tst-ld-sse-use.sh @@ -35,7 +35,7 @@ rtldobjs="$rtldobjs $(ar t ${objpfx}rtld-libc.a)" # OBJECT symbols can be ignored. $READELF -sW ${objpfx}dl-allobjs.os ${objpfx}rtld-libc.a | -egrep " OBJECT *GLOBAL " | +grep -E " OBJECT *GLOBAL " | awk '{if ($7 != "ABS") print $8 }' | sort -u > "$tmp" declare -a objects @@ -59,8 +59,8 @@ while test -n "$objs"; do done for o in $rtldobjs; do ro=$(echo "$objpfx"../*/"$o") - if $NM -g --defined-only "$ro" | egrep -qs " $s\$"; then - if ! (echo "$tocheck $objs" | fgrep -qs "$o"); then + if $NM -g --defined-only "$ro" | grep -E -qs " $s\$"; then + if ! (echo "$tocheck $objs" | grep -F -qs "$o"); then echo "$o needed for $s" objs="$objs $o" fi |