mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-09 15:26:29 +02:00
* fix working with short record function results under OS/2
git-svn-id: trunk@28885 -
This commit is contained in:
parent
ccbe03fc37
commit
09e0734b7c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user