浏览代码

Fix huge memory model failure by adding nostackframe modifier needed to avoid DS reloading at proc entry

git-svn-id: trunk@34049 -
pierre 9 年之前
父节点
当前提交
16477c598d
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      tests/test/cpu16/i8086/tprcdat1.pp

+ 6 - 1
tests/test/cpu16/i8086/tprcdat1.pp

@@ -6,7 +6,12 @@
 
 program tprcdat1;
 
-procedure TestProc; far; assembler;
+{$ifdef FPC}
+  {$ifdef FPC_MM_HUGE}
+    {$warning This test only works if TestProc uses NoStackFrame modifier}
+  {$endif}
+{$endif}
+procedure TestProc; far; assembler; {$ifdef FPC_MM_HUGE} nostackframe;{$endif}
 asm
   dw $1234
   dw $4321