浏览代码

* fixed offset calculation of first parameter on the stack if there
were any preceding parameters < 4 bytes

git-svn-id: trunk@3141 -

Jonas Maebe 19 年之前
父节点
当前提交
385815beff
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/powerpc/cpupara.pas

+ 1 - 1
compiler/powerpc/cpupara.pas

@@ -464,7 +464,7 @@ unit cpupara;
                       inc(nextintreg);
                       inc(nextintreg);
                       dec(paralen,tcgsize2size[paraloc^.size]);
                       dec(paralen,tcgsize2size[paraloc^.size]);
                       if target_info.abi=abi_powerpc_aix then
                       if target_info.abi=abi_powerpc_aix then
-                        inc(stack_offset,tcgsize2size[paraloc^.size]);
+                        inc(stack_offset,align(tcgsize2size[paraloc^.size],4));
                     end
                     end
                   else if (loc = LOC_FPUREGISTER) and
                   else if (loc = LOC_FPUREGISTER) and
                           (nextfloatreg <= maxfpureg) then
                           (nextfloatreg <= maxfpureg) then