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

m68k: with the register calling convention, pass records by reference

git-svn-id: trunk@35279 -
Károly Balogh 8 жил өмнө
parent
commit
78a7710192

+ 2 - 1
compiler/m68k/cpupara.pas

@@ -130,7 +130,8 @@ unit cpupara;
           formaldef :
           formaldef :
             result:=true;
             result:=true;
           recorddef:
           recorddef:
-            result:=false;
+            result:=(calloption in [pocall_register]) and
+                    (varspez in [vs_const]);
           arraydef:
           arraydef:
             result:=(tarraydef(def).highrange>=tarraydef(def).lowrange) or
             result:=(tarraydef(def).highrange>=tarraydef(def).lowrange) or
                              is_open_array(def) or
                              is_open_array(def) or