Browse Source

* fixed code generation for initialized pointer variables, with the initial
value set to the address of an external variable in the i8086 medium and
compact memory models. Should fix Mantis #30107

git-svn-id: trunk@33981 -

nickysn 9 years ago
parent
commit
452d9b747b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/aasmcnst.pas

+ 1 - 1
compiler/aasmcnst.pas

@@ -1788,7 +1788,7 @@ implementation
      begin
        { pointerdef because we are emitting a pointer to the staticvarsym
          data, not the data itself }
-       emit_tai(Tai_const.Createname(vs.mangledname,fqueue_offset),cpointerdef.getreusable(vs.vardef));
+       emit_tai(Tai_const.Createname(vs.mangledname,AT_DATA,fqueue_offset),cpointerdef.getreusable(vs.vardef));
        fqueue_offset:=low(fqueue_offset);
      end;