2
0
Эх сурвалжийг харах

* x86_64-win64: don't allocate outgoing parameter area in nostackframe procedures, it fails compilation if range/overflow/etc checking is enabled (which always sets pi_do_call) due to check introduced in r22677.

git-svn-id: trunk@25176 -
sergei 12 жил өмнө
parent
commit
70dda94474

+ 2 - 1
compiler/x86_64/cpupi.pas

@@ -69,7 +69,8 @@ implementation
           begin
             { Fixes the case when there are calls done by low-level means
               (cg.a_call_name) but no child callnode }
-            if (pi_do_call in flags) then
+            if (pi_do_call in flags) and
+              not (po_nostackframe in procdef.procoptions) then
               allocate_push_parasize(32);
 
             if not(po_assembler in procdef.procoptions) and