From 0e96a159c8936f2ece0b5630689f8cc3e13c9cdc Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Sat, 5 Dec 2009 22:53:27 +0000 Subject: [PATCH] * enabled pushing (x87) fpu registers in case too few might be available also for x86_64, since some of those platforms also support the x87 (noticed by Florian) git-svn-id: trunk@14338 - --- compiler/ncgadd.pas | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compiler/ncgadd.pas b/compiler/ncgadd.pas index 7d57123cb9..7169aa5e97 100644 --- a/compiler/ncgadd.pas +++ b/compiler/ncgadd.pas @@ -85,9 +85,9 @@ interface procedure tcgaddnode.pass_left_right; var tmpreg : tregister; -{$ifdef i386} +{$ifdef x86} pushedfpu, -{$endif i386} +{$endif x86} isjump : boolean; otl,ofl : tasmlabel; begin @@ -115,7 +115,7 @@ interface current_procinfo.CurrFalseLabel:=ofl; end; -{$ifdef i386} +{$ifdef x86} { are too few registers free? } pushedfpu:=false; if (left.location.loc=LOC_FPUREGISTER) and @@ -124,7 +124,7 @@ interface location_force_mem(current_asmdata.CurrAsmList,left.location); pushedfpu:=true; end; -{$endif i386} +{$endif x86} isjump:=(right.expectloc=LOC_JUMP); if isjump then @@ -142,7 +142,7 @@ interface current_procinfo.CurrTrueLabel:=otl; current_procinfo.CurrFalseLabel:=ofl; end; -{$ifdef i386} +{$ifdef x86} if pushedfpu then begin if use_vectorfpu(left.resultdef) then @@ -165,7 +165,7 @@ interface toggleflag(nf_swapped); end; end; -{$endif i386} +{$endif x86} end;