From 732cdc576603178e66149f2b33e1f525f9e5f11f Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Sat, 26 Jul 2008 13:38:25 +0200 Subject: [PATCH] Fix inline asm FS:4 by writing the displacement directly into the asm instead of using %fs:$0 with an input constraint. --- gen/d-asm-i386.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gen/d-asm-i386.h b/gen/d-asm-i386.h index bead7d3f..5863af7e 100644 --- a/gen/d-asm-i386.h +++ b/gen/d-asm-i386.h @@ -1929,7 +1929,8 @@ struct AsmProcessor if (operand->constDisplacement) { if (operand->symbolDisplacement.dim) insnTemplate->writebyte('+'); - addOperand(fmt, Arg_Integer, newIntExp(operand->constDisplacement), asmcode); + //addOperand(fmt, Arg_Integer, newIntExp(operand->constDisplacement), asmcode); + insnTemplate->printf("%d", operand->constDisplacement); if (opInfo->operands[i] & Opr_Dest) asmcode->clobbersMemory = 1; }