Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
5e15e4b07d
2 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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