Переглянути джерело

* tcgloadnode.pass_generate_code: rm the ifdef'd i8086 code from the handling of
non-method procsyms by using def_cgsize(pd.address_type) to determine the
address size

git-svn-id: trunk@27550 -

nickysn 11 роки тому
батько
коміт
68ff3fb1e2
1 змінених файлів з 2 додано та 6 видалено
  1. 2 6
      compiler/ncgld.pas

+ 2 - 6
compiler/ncgld.pas

@@ -575,13 +575,9 @@ implementation
                    end
                  else
                    begin
-                      { def_cgsize does not work for procdef }
-                      location.size:=OS_ADDR;
                       pd:=tprocdef(tprocsym(symtableentry).ProcdefList[0]);
-{$ifdef i8086}
-                      if po_far in pd.procoptions then
-                        location.size:=OS_32;
-{$endif i8086}
+                      { def_cgsize does not work for tprocdef, so we use pd.address_type }
+                      location.size:=def_cgsize(pd.address_type);
                       if not(po_weakexternal in pd.procoptions) then
                         location.reference.symbol:=current_asmdata.RefAsmSymbol(procdef.mangledname)
                       else