浏览代码

+ stack checking enabled for all targets (it is simulated now)

carl 23 年之前
父节点
当前提交
85216e1a0e
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      compiler/i386/cga.pas

+ 5 - 4
compiler/i386/cga.pas

@@ -1824,9 +1824,7 @@ implementation
                  else
                  else
 {$endif __NOWINPECOFF__}
 {$endif __NOWINPECOFF__}
                    exprasmList.insert(Taicpu.Op_const_reg(A_SUB,S_L,stackframe,R_ESP));
                    exprasmList.insert(Taicpu.Op_const_reg(A_SUB,S_L,stackframe,R_ESP));
-                 if (cs_check_stack in aktlocalswitches) and
-                   not(target_info.target in [target_i386_freebsd,target_i386_netbsd,
-                                              target_i386_linux,target_i386_win32,target_i386_wdosx]) then
+                 if (cs_check_stack in aktlocalswitches) then
                    begin
                    begin
                       emitinsertcall('FPC_STACKCHECK');
                       emitinsertcall('FPC_STACKCHECK');
                       exprasmList.insert(Taicpu.Op_const(A_PUSH,S_L,stackframe));
                       exprasmList.insert(Taicpu.Op_const(A_PUSH,S_L,stackframe));
@@ -2572,7 +2570,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.21  2002-04-04 19:06:08  peter
+  Revision 1.22  2002-04-14 20:54:17  carl
+  + stack checking enabled for all targets (it is simulated now)
+
+  Revision 1.21  2002/04/04 19:06:08  peter
     * removed unused units
     * removed unused units
     * use tlocation.size in cg.a_*loc*() routines
     * use tlocation.size in cg.a_*loc*() routines