Browse Source

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

git-svn-id: trunk@38152 -
nickysn 7 years ago
parent
commit
a792a92cfb
1 changed files with 7 additions and 1 deletions
  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