Mercurial > projects > ldc
diff gen/d-asm-i386.h @ 306:0baca2feb554 trunk
[svn r327] Fixed some more MinGW32 issues. It's now very close to working.
Fixed problems with inline asm like: mov EAX, FS:4 , which incidentally is used in the runtime to get the stack bottom, on Windows.
author | lindquist |
---|---|
date | Fri, 27 Jun 2008 23:58:22 +0200 |
parents | 2b72433d5c8c |
children | 3f98d46e05a4 |
line wrap: on
line diff
--- a/gen/d-asm-i386.h Fri Jun 27 22:04:35 2008 +0200 +++ b/gen/d-asm-i386.h Fri Jun 27 23:58:22 2008 +0200 @@ -1929,7 +1929,7 @@ if (operand->constDisplacement) { if (operand->symbolDisplacement.dim) insnTemplate->writebyte('+'); - addOperand2("${",":a}", Arg_Integer, newIntExp(operand->constDisplacement), asmcode); + addOperand(fmt, Arg_Integer, newIntExp(operand->constDisplacement), asmcode); if (opInfo->operands[i] & Opr_Dest) asmcode->clobbersMemory = 1; }