Переглянути джерело

* 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);
                       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