aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-06-26 17:50:41 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-06-26 17:50:41 +0000
commit02fc308916fff15f2a1c7b2f275dd27f2e31cc14 (patch)
tree1bc48f40b763735db6c1325db322f784b2d5583a /gas
parent714b128219f054608b63962c5a2583043fdc523f (diff)
downloadgdb-02fc308916fff15f2a1c7b2f275dd27f2e31cc14.zip
gdb-02fc308916fff15f2a1c7b2f275dd27f2e31cc14.tar.gz
gdb-02fc308916fff15f2a1c7b2f275dd27f2e31cc14.tar.bz2
2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (md_assemble): Declare "exp" before "if".
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-i386.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 810841a..96538fb 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/tc-i386.c (md_assemble): Declare "exp" before "if".
+
2003-06-25 Richard Sandiford <rsandifo@redhat.com>
* 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 5ac7e0c..22db238 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++];