aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-11-23 13:07:38 +0100
committerTom de Vries <tdevries@suse.de>2024-11-23 13:07:38 +0100
commit8dfa29fcbd60bead4d67569bd14c818540959130 (patch)
tree3d51e35c3e2ea37ac669a4a7ee0876b16a7705c6
parent60d465be9d3a94ae299be0ef66810aed35b69a55 (diff)
downloadgdb-8dfa29fcbd60bead4d67569bd14c818540959130.zip
gdb-8dfa29fcbd60bead4d67569bd14c818540959130.tar.gz
gdb-8dfa29fcbd60bead4d67569bd14c818540959130.tar.bz2
[sim] Rename local variable in ARMul_NthReg
Rename local variable in ARMul_NthReg from upto to up_to, to avoid being rewritten by gdb/contrib/spellcheck.sh. Approved-By: Tom Tromey <tom@tromey.com>
-rw-r--r--sim/arm/armsupp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/arm/armsupp.c b/sim/arm/armsupp.c
index 1a5eeaf..9fcc7f6 100644
--- a/sim/arm/armsupp.c
+++ b/sim/arm/armsupp.c
@@ -388,11 +388,11 @@ ModeToBank (ARMword mode)
unsigned
ARMul_NthReg (ARMword instr, unsigned number)
{
- unsigned bit, upto;
+ unsigned bit, up_to;
- for (bit = 0, upto = 0; upto <= number; bit ++)
+ for (bit = 0, up_to = 0; up_to <= number; bit ++)
if (BIT (bit))
- upto ++;
+ up_to ++;
return (bit - 1);
}