From ba0768b6a6156b8c57274978ec072111b419ed6d Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 13 Aug 2019 22:12:52 +0000 Subject: [PATCH] * building with -Cfvfpv2 hopefully fixed git-svn-id: trunk@42683 - --- compiler/arm/cgcpu.pas | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler/arm/cgcpu.pas b/compiler/arm/cgcpu.pas index 54ea2ce774..0327b4dd60 100644 --- a/compiler/arm/cgcpu.pas +++ b/compiler/arm/cgcpu.pas @@ -1933,6 +1933,13 @@ unit cgcpu; as the even ones by with a different subtype as it is done on x86 with al/ah } mmregs:=(rg[R_MMREGISTER].used_in_proc-paramanager.get_volatile_registers_mm(pocall_stdcall))*[0..31]; end + else if FPUARM_HAS_VFP_EXTENSION in fpu_capabilities[current_settings.fputype] then + begin; + { the *[0..15] is a hack to prevent that the compiler tries to save odd single-type registers, + they have numbers>$1f which is not really correct as they should simply have the same numbers + as the even ones by with a different subtype as it is done on x86 with al/ah } + mmregs:=(rg[R_MMREGISTER].used_in_proc-paramanager.get_volatile_registers_mm(pocall_stdcall))*[0..15]; + end else internalerror(2019050924); end;