* fix working with short record function results under OS/2

git-svn-id: trunk@28885 -
This commit is contained in:
Tomas Hajny 2014-10-20 15:40:17 +00:00
parent ccbe03fc37
commit 09e0734b7c

View File

@ -114,6 +114,23 @@ unit cpupara;
end;
end;
end;
system_i386_os2,
system_i386_emx:
begin
case def.typ of
recorddef :
begin
{ EMX port of GCC returns small records in the FUNCTION_RETURN_REG up to 4 bytes in registers. }
if ((pd.proccalloption in [pocall_cdecl,pocall_cppdecl]) and
(def.size>0) and
(def.size<=4)) then
begin
result:=false;
exit;
end;
end;
end;
end;
system_i386_freebsd,
system_i386_openbsd,
system_i386_darwin,