aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Feret <tommy.planet@free.fr>2009-09-01 12:56:05 +0200
committergrischka <grischka>2009-11-13 18:09:01 +0100
commit3065e706307eb18cb3527296f8fc97dbb9702be2 (patch)
tree3aa4502f8a8f28a760cacdaba6029e57ea8af236
parentae23c46ce279d99d8cbb21d8bf0926bb6b73873a (diff)
downloadtinycc-3065e706307eb18cb3527296f8fc97dbb9702be2.tar.gz
tinycc-3065e706307eb18cb3527296f8fc97dbb9702be2.tar.bz2
Fixed compilation error in i386-asm.c
-rw-r--r--i386-asm.c4
-rw-r--r--i386-asm.h4
2 files changed, 3 insertions, 5 deletions
diff --git a/i386-asm.c b/i386-asm.c
index 4c31233..9ac1a5c 100644
--- a/i386-asm.c
+++ b/i386-asm.c
@@ -841,8 +841,7 @@ static void asm_opcode(TCCState *s1, int opcode)
else {
if (ops[i].e.sym)
goto error_relocate;
- }
- gen_le16(ops[i].e.v);
+ gen_le16(ops[i].e.v);
}
} else {
if (pa->instr_type & (OPC_JMP | OPC_SHORTJMP)) {
@@ -876,7 +875,6 @@ static void asm_opcode(TCCState *s1, int opcode)
}
}
}
-
a32 = o32 = 0;
}
diff --git a/i386-asm.h b/i386-asm.h
index 7dfdca6..034cfad 100644
--- a/i386-asm.h
+++ b/i386-asm.h
@@ -74,8 +74,8 @@ ALT(DEF_ASM_OP2(btcw, 0x0fbb, 0, OPC_MODRM | OPC_WL, OPT_REGW, OPT_REGW | OPT_EA
ALT(DEF_ASM_OP2(btcw, 0x0fba, 7, OPC_MODRM | OPC_WL, OPT_IM8, OPT_REGW | OPT_EA))
/* prefixes */
- DEF_ASM_OP0(addr32, 0x67)
- DEF_ASM_OP0(data32, 0x66)
+ DEF_ASM_OP0(a32, 0x67)
+ DEF_ASM_OP0(o32, 0x66)
DEF_ASM_OP0(lock, 0xf0)
DEF_ASM_OP0(rep, 0xf3)
DEF_ASM_OP0(repe, 0xf3)