Explorar o código

* offset used by A_LDF,A_STF,A_FLDS,A_FLDD,A_FSTS,A_FSTD must be dividable by 4

git-svn-id: trunk@19270 -
florian %!s(int64=14) %!d(string=hai) anos
pai
achega
ce61891ca3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      compiler/arm/cgcpu.pas

+ 1 - 0
compiler/arm/cgcpu.pas

@@ -936,6 +936,7 @@ unit cgcpu;
            ((op in [A_LDF,A_STF,A_FLDS,A_FLDD,A_FSTS,A_FSTD]) and
             ((ref.offset<-1020) or
              (ref.offset>1020) or
+             ((abs(ref.offset) mod 4)<>0) or
              { the usual pc relative symbol handling assumes possible offsets of +/- 4095 }
              assigned(ref.symbol)
             )