* [PATCH 2/3] contrib/regression/btest-gcc.sh: Simplify option handling.
@ 2023-11-23 17:08 Hans-Peter Nilsson
0 siblings, 0 replies; only message in thread
From: Hans-Peter Nilsson @ 2023-11-23 17:08 UTC (permalink / raw)
To: gcc-patches; +Cc: geoffk
Tested as with the previous patch.
-- >8 --
* btest-gcc.sh (Option handling): Break out shifts from each
option alternative.
---
contrib/regression/btest-gcc.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/contrib/regression/btest-gcc.sh b/contrib/regression/btest-gcc.sh
index 22e8f0398662..3c031e93709b 100755
--- a/contrib/regression/btest-gcc.sh
+++ b/contrib/regression/btest-gcc.sh
@@ -32,12 +32,13 @@ dashj=''
while : ; do
case "$1" in
--add-passes-despite-regression)
- add_passes_despite_regression=1; shift;;
+ add_passes_despite_regression=1;;
-j*)
- dashj=$1; shift;;
+ dashj=$1;;
-*) echo "Invalid option: $1"; exit 2;;
*) break;;
esac
+ shift
done
# TARGET is the target triplet. It should be the same one as used in
--
2.30.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-23 17:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-23 17:08 [PATCH 2/3] contrib/regression/btest-gcc.sh: Simplify option handling Hans-Peter Nilsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).