瀏覽代碼

* prevent the spurious warning, generated by 'DD xx' and 'DD OFFSET xx' on i8086

git-svn-id: trunk@38152 -
nickysn 7 年之前
父節點
當前提交
a792a92cfb
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      compiler/x86/rax86int.pas

+ 7 - 1
compiler/x86/rax86int.pas

@@ -2451,7 +2451,13 @@ Unit Rax86int;
                 BuildConstSymbolExpression(false,false,false,value,asmsym,asmsymtyp,isseg,is_farproc_entry,hasofs);
                 if asmsym<>'' then
                  begin
-                   if (not isseg) and (constsize<>sizeof(pint)) then
+                   if (not isseg) and
+{$ifdef i8086}
+                      ((constsize<>2) and (constsize<>4))
+{$else i8086}
+                      (constsize<>sizeof(pint))
+{$endif i8086}
+                      then
                      Message1(asmr_w_const32bit_for_address,asmsym);
 {$ifdef i8086}
                    if asmsym='@DATA' then