Explorar o código

* fixed passing of structs on x86_64-linux

git-svn-id: trunk@4688 -
florian %!s(int64=19) %!d(string=hai) anos
pai
achega
360cbe1de1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/x86_64/cpupara.pas

+ 1 - 1
compiler/x86_64/cpupara.pas

@@ -209,7 +209,7 @@ unit cpupara;
           formaldef :
             result:=true;
           recorddef :
-            result:=(def.size>sizeof(aint)) or (varspez=vs_const);
+            result:=(varspez=vs_const) or ((target_info.system=system_x86_64_win64) and (def.size>8));
           arraydef :
             begin
               result:=not(