From 5b46eb68946b232f394eaa4fa006a1db2bb7ec26 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 26 Jun 2003 17:50:41 +0000 Subject: [PATCH] 2003-06-26 H.J. Lu * config/tc-i386.c (md_assemble): Declare "exp" before "if". --- gas/ChangeLog | 4 ++++ gas/config/tc-i386.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 810841a089..96538fb45f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2003-06-26 H.J. Lu + + * config/tc-i386.c (md_assemble): Declare "exp" before "if". + 2003-06-25 Richard Sandiford * config/tc-h8300.c (get_specific): Allow ':8' to be used for diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 5ac7e0c88d..22db238649 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -1413,6 +1413,8 @@ md_assemble (line) if (i.tm.opcode_modifier & ImmExt) { + expressionS *exp; + if ((i.tm.cpu_flags & CpuPNI) && i.operands > 0) { /* These Intel Precott New Instructions have the fixed @@ -1433,8 +1435,6 @@ md_assemble (line) immediate field would be. Here we fake an 8-bit immediate operand from the opcode suffix stored in tm.extension_opcode. */ - expressionS *exp; - assert (i.imm_operands == 0 && i.operands <= 2 && 2 < MAX_OPERANDS); exp = &im_expressions[i.imm_operands++]; -- 2.11.0