Browse Source

* fixed var+const support

peter 26 years ago
parent
commit
2a8d4f61c5
1 changed files with 6 additions and 5 deletions
  1. 6 5
      compiler/ra386att.pas

+ 6 - 5
compiler/ra386att.pas

@@ -3349,11 +3349,9 @@ Begin
                    end;
                    end;
                   if actasmtoken=AS_LPAREN then
                   if actasmtoken=AS_LPAREN then
                     BuildReference(instr);
                     BuildReference(instr);
-                  { allow leal l+2,%eax }
 
 
-                  if is_var and (actasmtoken in [AS_PLUS,AS_MINUS]) and
-                     (instr.operands[operandnum].ref.base=R_NO) and
-                     (instr.operands[operandnum].ref.index=R_NO) then
+                  { allow leal l+2,%eax }
+                  if is_var and (actasmtoken in [AS_PLUS,AS_MINUS]) then
                     Begin
                     Begin
                       Instr.Operands[OperandNum].Ref.Offset :=
                       Instr.Operands[OperandNum].Ref.Offset :=
                         Instr.Operands[OperandNum].Ref.Offset
                         Instr.Operands[OperandNum].Ref.Offset
@@ -3960,7 +3958,10 @@ end.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.39  1999-04-26 23:26:12  peter
+  Revision 1.40  1999-04-29 09:37:44  peter
+    * fixed var+const support
+
+  Revision 1.39  1999/04/26 23:26:12  peter
     * redesigned record offset parsing to support nested records
     * redesigned record offset parsing to support nested records
     * normal compiler uses the redesigned createvarinstr()
     * normal compiler uses the redesigned createvarinstr()