Explorar o código

* properly set 8 byte parameter alignment for first parameter on ARM if
applicable

git-svn-id: trunk@41447 -

Jonas Maebe %!s(int64=6) %!d(string=hai) anos
pai
achega
bead1f8180
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      compiler/arm/cpupara.pas

+ 2 - 4
compiler/arm/cpupara.pas

@@ -512,13 +512,11 @@ unit cpupara;
                            firstparaloc and
                            (paradef.alignment=8) then
                           begin
+                            hp.paraloc[side].Alignment:=8;
                             if (nextintreg in [RS_R1,RS_R3]) then
                               inc(nextintreg)
                             else if nextintreg>RS_R3 then
-                              begin
-                                stack_offset:=align(stack_offset,8);
-                                hp.paraloc[side].Alignment:=8;
-                              end;
+                              stack_offset:=align(stack_offset,8);
                           end;
                         if nextintreg<=RS_R3 then
                           begin