Explorar el Código

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

git-svn-id: trunk@34049 -
pierre hace 9 años
padre
commit
16477c598d
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  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