浏览代码

add basic constant handling to subscript nodes, avoid ie20060521 when building rgobj.pas with -O3/-O4

git-svn-id: trunk@26532 -
Károly Balogh 11 年之前
父节点
当前提交
5e15e4b07d
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      compiler/ncgmem.pas
  2. 1 0
      compiler/nmem.pas

+ 1 - 0
compiler/ncgmem.pas

@@ -404,6 +404,7 @@ implementation
                LOC_REFERENCE,
                LOC_CREFERENCE:
                  ;
+               LOC_CONSTANT,
                LOC_REGISTER,
                LOC_CREGISTER,
                LOC_MMREGISTER,

+ 1 - 0
compiler/nmem.pas

@@ -800,6 +800,7 @@ implementation
          else
            begin
              case left.expectloc of
+               LOC_CONSTANT,
                LOC_REGISTER,
                LOC_SUBSETREG:
                  // can happen for function results on win32 and darwin/x86