Explorar el Código

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

git-svn-id: trunk@35279 -
Károly Balogh hace 8 años
padre
commit
78a7710192
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      compiler/m68k/cpupara.pas

+ 2 - 1
compiler/m68k/cpupara.pas

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