瀏覽代碼

* the length of a sequence loading a constant in a register is properly set
* register contents are fully cleared in clearregcontentsfrom()

git-svn-id: trunk@3654 -

Jonas Maebe 19 年之前
父節點
當前提交
a854918f9a
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 2 0
      compiler/i386/csopt386.pas
  2. 1 0
      compiler/i386/daopt386.pas

+ 2 - 0
compiler/i386/csopt386.pas

@@ -870,6 +870,8 @@ begin
               begin
               begin
                 typ := con_unknown;
                 typ := con_unknown;
                 memwrite := nil;
                 memwrite := nil;
+                startmod := nil;
+                nrofmods := 0;
               end;
               end;
         end;
         end;
       getNextInstruction(p,p);
       getNextInstruction(p,p);

+ 1 - 0
compiler/i386/daopt386.pas

@@ -2566,6 +2566,7 @@ begin
                                   DestroyReg(curprop, tmpsupreg, true);
                                   DestroyReg(curprop, tmpsupreg, true);
                                   typ := Con_Const;
                                   typ := Con_Const;
                                   StartMod := p;
                                   StartMod := p;
+                                  nrOfMods := 1;
                                 end
                                 end
                             end;
                             end;
                           top_ref:
                           top_ref: