Parcourir la source

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

git-svn-id: branches/z80@45044 -
nickysn il y a 5 ans
Parent
commit
55254ff64b
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      compiler/nadd.pas

+ 4 - 1
compiler/nadd.pas

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