From 56f53176e7985370b3a636fa981c44e2a2e72408 Mon Sep 17 00:00:00 2001 From: pierre Date: Tue, 27 Jan 2015 22:52:00 +0000 Subject: [PATCH] Add freebsd, openbsd and OS2 to the list of i386 targets handling records with only one float as normal float git-svn-id: trunk@29570 - --- compiler/i386/cpupara.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/i386/cpupara.pas b/compiler/i386/cpupara.pas index 41b83a892c..4f16a301bb 100644 --- a/compiler/i386/cpupara.pas +++ b/compiler/i386/cpupara.pas @@ -302,7 +302,8 @@ unit cpupara; usedef:=forcetempdef; { on darwin/i386, if a record has only one field and that field is a single or double, it has to be returned like a single/double } - if (target_info.system in [system_i386_darwin,system_i386_iphonesim]) and + if (target_info.system in [system_i386_darwin,system_i386_iphonesim, + system_i386_freebsd,system_i386_openbsd,system_i386_os2]) and ((usedef.typ=recorddef) or is_object(usedef)) and tabstractrecordsymtable(tabstractrecorddef(usedef).symtable).has_single_field(sym) and