Explorar el Código

HPCC-10525 Solve constant folding functions for ARM

More compile errors on ARM

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman hace 11 años
padre
commit
2e4ab5d5e5
Se han modificado 2 ficheros con 8 adiciones y 1 borrados
  1. 7 0
      ecl/hql/hqlstack.cpp
  2. 1 1
      ecl/hql/hqlstack.hpp

+ 7 - 0
ecl/hql/hqlstack.cpp

@@ -28,7 +28,14 @@ FuncCallStack::FuncCallStack(int size) {
 #ifdef MAXFPREGS
     numFpRegs = 0;
     for (unsigned i=0;i<MAXFPREGS;i++)
+    {
+#ifdef FPREG_FIXEDSIZE
         fpRegs[i] = 0.0;
+#else
+        fpRegs[i].d = 0.0;
+        fpSizes[i] = 8;
+#endif
+    }
 #endif
 }
 

+ 1 - 1
ecl/hql/hqlstack.hpp

@@ -82,7 +82,7 @@ private:
         double d;
         float f;
     } fpRegs[MAXFPREGS];
-    unsigned fpsizes[MAXFPREGS];
+    unsigned fpSizes[MAXFPREGS];
  #endif
     unsigned    numFpRegs;
 #endif