From 27634ea5b6119f95e852508fcc64b3a10889736e Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Sat, 7 Jun 2008 19:19:30 +0200 Subject: [PATCH] [svn r243] fixed inline asm arg_pointer args hopefully. --- gen/asmstmt.cpp | 2 +- gen/d-asm-i386.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gen/asmstmt.cpp b/gen/asmstmt.cpp index 7fe9ea14..43afb613 100644 --- a/gen/asmstmt.cpp +++ b/gen/asmstmt.cpp @@ -255,7 +255,7 @@ AsmStatement::toIR(IRState * irs) 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"; diff --git a/gen/d-asm-i386.h b/gen/d-asm-i386.h index cabf144b..44fc5a40 100644 --- a/gen/d-asm-i386.h +++ b/gen/d-asm-i386.h @@ -1907,7 +1907,7 @@ struct AsmProcessor 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('*');