Przeglądaj źródła

+ set expectloc in the first pass of the addnode for small CPUs for procvardef comparisons

git-svn-id: branches/z80@45044 -
nickysn 5 lat temu
rodzic
commit
55254ff64b
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      compiler/nadd.pas

+ 4 - 1
compiler/nadd.pas

@@ -4206,7 +4206,10 @@ implementation
                   (ld.typ=procvardef) and
                   (ld.typ=procvardef) and
                   equal_defs(rd,ld) then
                   equal_defs(rd,ld) then
            begin
            begin
-             expectloc:=LOC_FLAGS;
+             if tprocvardef(ld).size>sizeof(aint) then
+               expectloc:=LOC_JUMP
+             else
+               expectloc:=LOC_FLAGS;
            end
            end
 
 
          else if (ld.typ=enumdef) then
          else if (ld.typ=enumdef) then