[binutils-gdb] Re: bfd ASSOCIATED_VECS
Alan Modra
amodra@sourceware.org
Fri Dec 26 01:05:05 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5aa50c9ddfda05bdfc6941d445ecba3ef1985970
commit 5aa50c9ddfda05bdfc6941d445ecba3ef1985970
Author: Alan Modra <amodra@gmail.com>
Date: Fri Dec 26 10:56:15 2025 +1030
Re: bfd ASSOCIATED_VECS
What I committed in f4e835a40c wasn't wrong but it wasn't elegant.
Unlike looking for a word separated by spaces, it isn't necessary
to prepend and append the separators in the match string.
* configure.ac (assocvecs): Tidy uniquify code.
* configure: Regenerate.
Diff:
---
bfd/configure | 2 +-
bfd/configure.ac | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bfd/configure b/bfd/configure
index e30030e5e13..0caff54a9e0 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -16170,7 +16170,7 @@ if test x${all_targets} = xtrue ; then
selarchs=
f=
for i in $assocvecs ; do
- case "&${f}," in
+ case "${f}" in
*"&${i},"*) ;;
*) f="${f}&${i}," ;;
esac
diff --git a/bfd/configure.ac b/bfd/configure.ac
index c264cc215af..d30ccd60ebf 100644
--- a/bfd/configure.ac
+++ b/bfd/configure.ac
@@ -711,7 +711,7 @@ if test x${all_targets} = xtrue ; then
selarchs=
f=
for i in $assocvecs ; do
- case "&${f}," in
+ case "${f}" in
*"&${i},"*) ;;
*) f="${f}&${i}," ;;
esac
More information about the Binutils-cvs
mailing list