Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
5e15e4b07d
2 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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