Browse Source

Fix bug report #36081: fix cycling starting with i386-linux 3.0.4 release compiler

git-svn-id: trunk@43029 -
pierre 5 years ago
parent
commit
5cc4f0be20
1 changed files with 2 additions and 0 deletions
  1. 2 0
      rtl/inc/system.inc

+ 2 - 0
rtl/inc/system.inc

@@ -953,6 +953,7 @@ begin
    exit;
    exit;
   { check stack alignment }
   { check stack alignment }
 {$ifdef CPUI386}
 {$ifdef CPUI386}
+{$ifdef FPC_STACKALIGNMENT}
 {$if FPC_STACKALIGNMENT=16}
 {$if FPC_STACKALIGNMENT=16}
   if ((PtrUInt(Sptr)+4) mod 16)<>0 then
   if ((PtrUInt(Sptr)+4) mod 16)<>0 then
     begin
     begin
@@ -960,6 +961,7 @@ begin
       HandleError(202);
       HandleError(202);
     end;
     end;
 {$endif FPC_STACKALIGNMENT=16}
 {$endif FPC_STACKALIGNMENT=16}
+{$endif FPC_STACKALIGNMENT}
 {$endif CPUI386}
 {$endif CPUI386}
   { don't use stack_size, since the stack pointer has already been
   { don't use stack_size, since the stack pointer has already been
     decreased when this routine is called
     decreased when this routine is called