# HG changeset patch # User Christian Kamm # Date 1217072305 -7200 # Node ID e04389bafb3e771bc7f2b23cb83a345ef1363534 # Parent 722f5e90c39c266466c4dcb03ccafa5a83d6f00f Fix inline asm FS:4 by writing the displacement directly into the asm instead of using %fs:$0 with an input constraint. diff -r 722f5e90c39c -r e04389bafb3e gen/d-asm-i386.h --- a/gen/d-asm-i386.h Thu Jul 24 18:51:36 2008 +0200 +++ b/gen/d-asm-i386.h Sat Jul 26 13:38:25 2008 +0200 @@ -1929,7 +1929,8 @@ 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; }