Browse Source

* 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 years ago
parent
commit
385815beff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/powerpc/cpupara.pas

+ 1 - 1
compiler/powerpc/cpupara.pas

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