瀏覽代碼

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

git-svn-id: trunk@47757 -
florian 4 年之前
父節點
當前提交
f0298f63d0
共有 1 個文件被更改,包括 2 次插入1 次删除
  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