浏览代码

* assume external variables are in a different segment in the huge memory model

git-svn-id: trunk@31517 -
nickysn 10 年之前
父节点
当前提交
69042574b2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/i8086/n8086ld.pas

+ 1 - 1
compiler/i8086/n8086ld.pas

@@ -192,7 +192,7 @@ implementation
                   { Normal (or external) variable }
                   else
                     begin
-                      if gvs.Owner.iscurrentunit then
+                      if not (vo_is_external in gvs.varoptions) and gvs.Owner.iscurrentunit then
                         begin
                           inherited pass_generate_code;
                           exit;