]> git.feebdaed.xyz Git - 0xmirror/binutils-gdb.git/commitdiff
Re: bfd ASSOCIATED_VECS
authorAlan Modra <amodra@gmail.com>
Fri, 26 Dec 2025 00:26:15 +0000 (10:56 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 26 Dec 2025 01:04:24 +0000 (11:34 +1030)
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.

bfd/configure
bfd/configure.ac

index e30030e5e13235dec625859015e415d4bf5b8b8e..0caff54a9e0744bdbf3e5612c47b960d9bf8ea07 100755 (executable)
@@ -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
index c264cc215af49568261a25a2a0d0af8d73215388..d30ccd60ebff1d241be66d2dcdf43a23eca86749 100644 (file)
@@ -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