浏览代码

* 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 -

Jonas Maebe 15 年之前
父节点
当前提交
0e96a159c8
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      compiler/ncgadd.pas

+ 6 - 6
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;