aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2010-06-08 15:42:29 +0000
committerSebastian Pop <sebastian.pop@amd.com>2010-06-08 15:42:29 +0000
commit09137c09f4e188e3a8d925d8f22c074a3f625693 (patch)
treee60ebe5ec8eec6259aea32ccfc0982b1db78f405
parentcba3addf0c5906471d44527394c6e5f8594733c1 (diff)
downloadgdb-09137c09f4e188e3a8d925d8f22c074a3f625693.zip
gdb-09137c09f4e188e3a8d925d8f22c074a3f625693.tar.gz
gdb-09137c09f4e188e3a8d925d8f22c074a3f625693.tar.bz2
2010-06-08 Quentin Neill <quentin.neill@amd.com>
* config/tc-i386.c (pi): Rename local loop counter variable i that shadows global static i386_insn i when DEBUG386 is defined. (pte) Ditto.
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/config/tc-i386.c50
2 files changed, 32 insertions, 25 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index d775a80..3b9cc04 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+2010-06-08 Quentin Neill <quentin.neill@amd.com>
+
+ * config/tc-i386.c (pi): Rename local loop counter
+ variable i that shadows global static i386_insn i
+ when DEBUG386 is defined.
+ (pte) Ditto.
+
2010-06-08 Nick Clifton <nickc@redhat.com>
* doc/as.texinfo: Replace abbreviated 20th century year numbers
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index e80b993..37d8211 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -2341,7 +2341,7 @@ static void ps (symbolS *);
static void
pi (char *line, i386_insn *x)
{
- unsigned int i;
+ unsigned int j;
fprintf (stdout, "%s: template ", line);
pte (&x->tm);
@@ -2358,35 +2358,35 @@ pi (char *line, i386_insn *x)
(x->rex & REX_R) != 0,
(x->rex & REX_X) != 0,
(x->rex & REX_B) != 0);
- for (i = 0; i < x->operands; i++)
+ for (j = 0; j < x->operands; j++)
{
- fprintf (stdout, " #%d: ", i + 1);
- pt (x->types[i]);
+ fprintf (stdout, " #%d: ", j + 1);
+ pt (x->types[j]);
fprintf (stdout, "\n");
- if (x->types[i].bitfield.reg8
- || x->types[i].bitfield.reg16
- || x->types[i].bitfield.reg32
- || x->types[i].bitfield.reg64
- || x->types[i].bitfield.regmmx
- || x->types[i].bitfield.regxmm
- || x->types[i].bitfield.regymm
- || x->types[i].bitfield.sreg2
- || x->types[i].bitfield.sreg3
- || x->types[i].bitfield.control
- || x->types[i].bitfield.debug
- || x->types[i].bitfield.test)
- fprintf (stdout, "%s\n", x->op[i].regs->reg_name);
- if (operand_type_check (x->types[i], imm))
- pe (x->op[i].imms);
- if (operand_type_check (x->types[i], disp))
- pe (x->op[i].disps);
+ if (x->types[j].bitfield.reg8
+ || x->types[j].bitfield.reg16
+ || x->types[j].bitfield.reg32
+ || x->types[j].bitfield.reg64
+ || x->types[j].bitfield.regmmx
+ || x->types[j].bitfield.regxmm
+ || x->types[j].bitfield.regymm
+ || x->types[j].bitfield.sreg2
+ || x->types[j].bitfield.sreg3
+ || x->types[j].bitfield.control
+ || x->types[j].bitfield.debug
+ || x->types[j].bitfield.test)
+ fprintf (stdout, "%s\n", x->op[j].regs->reg_name);
+ if (operand_type_check (x->types[j], imm))
+ pe (x->op[j].imms);
+ if (operand_type_check (x->types[j], disp))
+ pe (x->op[j].disps);
}
}
static void
pte (insn_template *t)
{
- unsigned int i;
+ unsigned int j;
fprintf (stdout, " %d operands ", t->operands);
fprintf (stdout, "opcode %x ", t->base_opcode);
if (t->extension_opcode != None)
@@ -2396,10 +2396,10 @@ pte (insn_template *t)
if (t->opcode_modifier.w)
fprintf (stdout, "W");
fprintf (stdout, "\n");
- for (i = 0; i < t->operands; i++)
+ for (j = 0; j < t->operands; j++)
{
- fprintf (stdout, " #%d type ", i + 1);
- pt (t->operand_types[i]);
+ fprintf (stdout, " #%d type ", j + 1);
+ pt (t->operand_types[j]);
fprintf (stdout, "\n");
}
}