* src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
[fw/sdcc] / src / SDCCloop.c
index fc928630bd241126a69b05e6f05ffcf700181dc4..87523a21978a29a4c3b6e241cc0fe3dfe4b9a9d6 100644 (file)
@@ -39,7 +39,7 @@ newInduction (operand * sym, unsigned int op,
 {
   induction *ip;
 
-  ip = Safe_calloc (1, sizeof (induction));
+  ip = Safe_alloc ( sizeof (induction));
 
   ip->sym = sym;
   ip->asym = asym;
@@ -58,7 +58,7 @@ newRegion ()
 {
   region *lp;
 
-  lp = Safe_calloc (1, sizeof (region));
+  lp = Safe_alloc ( sizeof (region));
 
   return lp;
 }
@@ -798,6 +798,13 @@ basicInduction (region * loopReg, eBBlock ** ebbs, int count)
          OP_SYMBOL (IC_RESULT (indIc))->isind = 1;
          ip = newInduction (IC_RIGHT (ic), dic->op, litValue, indIc, NULL);
 
+         if (0) {
+           fprintf (stderr, "%s:%d: stupid way to avoid bug #467035, but\n"
+                    "this will keep the regressions tests going.\n",
+                    __FILE__, __LINE__);
+           continue;
+         } continue;
+
          /* replace the inducted variable by the iTemp */
          replaceSymBySym (loopReg->regBlocks, IC_RESULT (ic), IC_RIGHT (ic));