瀏覽代碼

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

git-svn-id: trunk@35279 -
Károly Balogh 8 年之前
父節點
當前提交
78a7710192
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/m68k/cpupara.pas

+ 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