X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCloop.c;h=87523a21978a29a4c3b6e241cc0fe3dfe4b9a9d6;hb=9a382ea007dd372b41f444337bedfacba4c782aa;hp=fc928630bd241126a69b05e6f05ffcf700181dc4;hpb=15f79deb6cf094bc83de7ade9e272b1ebfd4f640;p=fw%2Fsdcc diff --git a/src/SDCCloop.c b/src/SDCCloop.c index fc928630..87523a21 100644 --- a/src/SDCCloop.c +++ b/src/SDCCloop.c @@ -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));