X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCBBlock.c;h=5c757bca4bce7e7d2a12474e18ddbd224c87515e;hb=1fcf333be9b5b4f71405a11db6d483abc271d683;hp=10053301a095139b9ea32371bca1c038d87f4571;hpb=df7c871421f26a279325f8efa2c04f4600d9eb45;p=fw%2Fsdcc diff --git a/src/SDCCBBlock.c b/src/SDCCBBlock.c index 10053301..5c757bca 100644 --- a/src/SDCCBBlock.c +++ b/src/SDCCBBlock.c @@ -178,6 +178,7 @@ dumpEbbsToFileExt (int id, eBBlock ** ebbs, int count) FILE *of; int i; eBBlock *bb; + set *cseSet; if (id) { of=createDumpFile(id); @@ -230,6 +231,29 @@ dumpEbbsToFileExt (int id, eBBlock ** ebbs, int count) fprintf (of, "\nInductions Set bitvector :"); bitVectDebugOn (ebbs[i]->linds, of); } + + fprintf (of, "\ninExprs:"); + for (cseSet = ebbs[i]->inExprs; cseSet; cseSet=cseSet->next) { + cseDef *item=cseSet->item; + fprintf (of, " %s(%d)",OP_SYMBOL(item->sym)->name,item->diCode->key); + if (item->fromGlobal) + fprintf (of, "g"); + } + fprintf (of, "\noutExprs:"); + for (cseSet = ebbs[i]->outExprs; cseSet; cseSet=cseSet->next) { + cseDef *item=cseSet->item; + fprintf (of, " %s(%d)",OP_SYMBOL(item->sym)->name,item->diCode->key); + if (item->fromGlobal) + fprintf (of, "g"); + } + fprintf (of, "\nkilledExprs:"); + for (cseSet = ebbs[i]->killedExprs; cseSet; cseSet=cseSet->next) { + cseDef *item=cseSet->item; + fprintf (of, " %s(%d)",OP_SYMBOL(item->sym)->name,item->diCode->key); + if (item->fromGlobal) + fprintf (of, "g"); + } + fprintf (of, "\n----------------------------------------------------------------\n"); printiCChain (ebbs[i]->sch, of); } @@ -710,7 +734,7 @@ iCodeFromeBBlock (eBBlock ** ebbs, int count) while (ic); if (foundNonlabel && ic) { - werror (W_CODE_UNREACH, ic->filename, ic->lineno); + werrorfl (ic->filename, ic->lineno, W_CODE_UNREACH); continue; } }