Selaa lähdekoodia

* allocate space for the explicitly allocated assert parameter

git-svn-id: trunk@20501 -
Jonas Maebe 13 vuotta sitten
vanhempi
commit
34df763ab1
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      compiler/ninl.pas

+ 6 - 0
compiler/ninl.pas

@@ -3081,6 +3081,12 @@ implementation
          in_assert_x_y :
          in_assert_x_y :
             begin
             begin
               expectloc:=LOC_VOID;
               expectloc:=LOC_VOID;
+{$ifdef i386}
+              { hack: on i386, the fourth parameter is passed via memory ->
+                we have to allocate enough stack space for it on targets that
+                use a fixed stack }
+              current_procinfo.allocate_push_parasize(4);
+{$endif}
             end;
             end;
 
 
           in_low_x,
           in_low_x,