瀏覽代碼

* x86_64 abis ensure that the direction flag is clear at procedure entry

git-svn-id: trunk@4689 -
florian 19 年之前
父節點
當前提交
efd24ba7a0
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/x86/cgx86.pas

+ 2 - 1
compiler/x86/cgx86.pas

@@ -1641,8 +1641,9 @@ unit cgx86;
             a_loadaddr_ref_reg(list,source,REGSI);
 
             getcpuregister(list,REGCX);
-
+{$ifdef i386}
             list.concat(Taicpu.op_none(A_CLD,S_NO));
+{$endif i386}
             if cs_opt_size in aktoptimizerswitches  then
               begin
                 a_load_const_reg(list,OS_INT,len,REGCX);