aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-10-13 16:42:40 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-10-13 16:42:40 +0000
commit4c2c651631888dfba38b6ba5bdeafa046f0ee7ff (patch)
treef2a0d5e5f645583a0863e8a549b6957a96231cd6
parentcd2b2c108e1cbbef5d8898070c875e4fd546141d (diff)
downloadgdb-4c2c651631888dfba38b6ba5bdeafa046f0ee7ff.zip
gdb-4c2c651631888dfba38b6ba5bdeafa046f0ee7ff.tar.gz
gdb-4c2c651631888dfba38b6ba5bdeafa046f0ee7ff.tar.bz2
2009-10-13 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/10766 * config/tc-i386.c (build_modrm_byte): Declare exp earlier.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-i386.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 2ae18e1..4bfe4bc 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2009-10-13 H.J. Lu <hongjiu.lu@intel.com>
+ PR binutils/10766
+ * config/tc-i386.c (build_modrm_byte): Declare exp earlier.
+
+2009-10-13 H.J. Lu <hongjiu.lu@intel.com>
+
PR gas/10740
* config/tc-i386-intel.c (i386_intel_operand): Handle call
and jump with 2 immediate operands.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 54edb1b..c01175f 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -4873,6 +4873,7 @@ build_modrm_byte (void)
if (vex_3_sources)
{
unsigned int nds, reg;
+ expressionS *exp;
if (i.tm.opcode_modifier.veximmext
&& i.tm.opcode_modifier.immext)
@@ -4896,7 +4897,7 @@ build_modrm_byte (void)
/* Generate an 8bit immediate operand to encode the register
operand. */
- expressionS *exp = &im_expressions[i.imm_operands++];
+ exp = &im_expressions[i.imm_operands++];
i.op[i.operands].imms = exp;
i.types[i.operands] = imm8;
i.operands++;