Explorar o código

* do stack page initialization on i386-wince as well

git-svn-id: trunk@4521 -
florian %!s(int64=19) %!d(string=hai) anos
pai
achega
6d0a078441
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      compiler/x86/cgx86.pas

+ 5 - 5
compiler/x86/cgx86.pas

@@ -1746,9 +1746,9 @@ unit cgx86;
          begin
          begin
 {$ifdef i386}
 {$ifdef i386}
 {$ifndef NOTARGETWIN}
 {$ifndef NOTARGETWIN}
-           { windows guards only a few pages for stack growing, }
-           { so we have to access every page first              }
-           if (target_info.system=system_i386_win32) and
+           { windows guards only a few pages for stack growing,
+             so we have to access every page first              }
+           if (target_info.system in [system_i386_win32,system_i386_wince]) and
               (localsize>=winstackpagesize) then
               (localsize>=winstackpagesize) then
              begin
              begin
                if localsize div winstackpagesize<=5 then
                if localsize div winstackpagesize<=5 then
@@ -1783,8 +1783,8 @@ unit cgx86;
 {$endif i386}
 {$endif i386}
 {$ifdef x86_64}
 {$ifdef x86_64}
 {$ifndef NOTARGETWIN}
 {$ifndef NOTARGETWIN}
-           { windows guards only a few pages for stack growing, }
-           { so we have to access every page first              }
+           { windows guards only a few pages for stack growing,
+             so we have to access every page first              }
            if (target_info.system=system_x86_64_win64) and
            if (target_info.system=system_x86_64_win64) and
               (localsize>=winstackpagesize) then
               (localsize>=winstackpagesize) then
              begin
              begin