浏览代码

* make use_fixed_stack for i386 more generic (any target with more than
4 byte stack alignment needs a fixed stack)

git-svn-id: trunk@23043 -

Jonas Maebe 12 年之前
父节点
当前提交
3eb527b532
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/paramgr.pas

+ 1 - 1
compiler/paramgr.pas

@@ -498,7 +498,7 @@ implementation
     function tparamanager.use_fixed_stack: boolean;
     function tparamanager.use_fixed_stack: boolean;
       begin
       begin
 {$ifdef i386}
 {$ifdef i386}
-        result := (target_info.system in [system_i386_darwin,system_i386_iphonesim]);
+        result := target_info.stackalign > 4;
 {$else i386}
 {$else i386}
 {$ifdef cputargethasfixedstack}
 {$ifdef cputargethasfixedstack}
         result := true;
         result := true;