Browse Source

* allow absolute variables with an address to be used as syscall base

git-svn-id: trunk@47757 -
florian 4 năm trước cách đây
mục cha
commit
f0298f63d0
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      compiler/pdecsub.pas

+ 2 - 1
compiler/pdecsub.pas

@@ -2241,7 +2241,8 @@ begin
     end;
 
   if consume_sym(sym,symtable) then
-    if (sym.typ=staticvarsym) and
+    if ((sym.typ=staticvarsym) or
+        (sym.typ=absolutevarsym) and (tabsolutevarsym(sym).abstyp=toaddr)) and
        ((tabstractvarsym(sym).vardef.typ=pointerdef) or
         is_32bitint(tabstractvarsym(sym).vardef)) then
       begin