Mercurial > projects > ldc
changeset 227:3092a38dddab trunk
[svn r243] fixed inline asm arg_pointer args hopefully.
author | lindquist |
---|---|
date | Sat, 07 Jun 2008 19:19:30 +0200 |
parents | 4145266ff4bd |
children | 52d1e9d27dc6 |
files | gen/asmstmt.cpp gen/d-asm-i386.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/asmstmt.cpp Sat Jun 07 19:04:26 2008 +0200 +++ b/gen/asmstmt.cpp Sat Jun 07 19:19:30 2008 +0200 @@ -255,7 +255,7 @@ return; static std::string i_cns = "i"; - static std::string p_cns = "p"; + static std::string p_cns = "m"; static std::string m_cns = "*m"; static std::string mw_cns = "=*m"; static std::string mrw_cns = "+*m";
--- a/gen/d-asm-i386.h Sat Jun 07 19:04:26 2008 +0200 +++ b/gen/d-asm-i386.h Sat Jun 07 19:19:30 2008 +0200 @@ -1907,7 +1907,7 @@ addLabel(lbl->asmLabelNum); } else if ((decl && decl->isCodeseg())) { // if function or label use_star = false; - addOperand("$a", Arg_Pointer, e, asmcode); + addOperand("*$", Arg_Pointer, e, asmcode); } else { if (use_star) { insnTemplate->writebyte('*');