diff --git a/gas/ChangeLog b/gas/ChangeLog index 2ae18e1ed7b..4bfe4bc38ae 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2009-10-13 H.J. Lu + + PR binutils/10766 + * config/tc-i386.c (build_modrm_byte): Declare exp earlier. + 2009-10-13 H.J. Lu PR gas/10740 diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 54edb1b80d3..c01175fef58 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++;