This makes the dump files more readable
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 8 Mar 2003 19:49:51 +0000 (19:49 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 8 Mar 2003 19:49:51 +0000 (19:49 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2349 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCBBlock.c
src/SDCCicode.c

index 51b2cd69a0ac949946d0e7396001c807b43907d0..fe26978a52b8ccaea776736b0d225988395b2bb0 100644 (file)
@@ -177,6 +177,7 @@ dumpEbbsToFileExt (int id, eBBlock ** ebbs, int count)
 {
   FILE *of;
   int i;
+  eBBlock *bb;
 
   if (id) {
     of=createDumpFile(id);
@@ -193,6 +194,35 @@ dumpEbbsToFileExt (int id, eBBlock ** ebbs, int count)
               ebbs[i]->depth,
               ebbs[i]->noPath,
               ebbs[i]->isLastInLoop);
+
+      if (!optimize.label4) { 
+       // this only makes sense with --nolabelopt
+       fprintf (of, "\nsuccessors: ");
+       for (bb=setFirstItem(ebbs[i]->succList); 
+            bb; 
+            bb=setNextItem(ebbs[i]->succList)) {
+         fprintf (of, "%s ", bb->entryLabel->name);
+       }
+       fprintf (of, "\npredecessors: ");
+       for (bb=setFirstItem(ebbs[i]->predList); 
+            bb; 
+            bb=setNextItem(ebbs[i]->predList)) {
+         fprintf (of, "%s ", bb->entryLabel->name);
+       }
+#if 0 // jwk: TODO: this can't be true
+       {
+         int d;
+         fprintf (of, "\ndominators ???: ");
+         for (d=0; d<ebbs[i]->domVect->size; d++) {
+           if (bitVectBitValue(ebbs[d]->domVect, d)) {
+             fprintf (of, "%s ", ebbs[d]->entryLabel->name);
+           }
+         }
+       }
+#endif
+       fprintf (of, "\n");
+      }
+  
       fprintf (of, "\ndefines bitVector :");
       bitVectDebugOn (ebbs[i]->defSet, of);
       fprintf (of, "\nlocal defines bitVector :");
index 3a24fbd4a6ab0a298f42f9a6c3401742f329514a..9c37fe0a2d5f22cdc4197ffc06ea11eb134f0c4f 100644 (file)
@@ -500,7 +500,7 @@ printiCChain (iCode * icChain, FILE * of)
     {
       if ((icTab = getTableEntry (loop->op)))
        {
-         fprintf (of, "%s(%d:%d:%d:%d:%d)\t",
+         fprintf (of, "%s(l%d:s%d:k%d:d%d:s%d)\t",
                   loop->filename, loop->lineno,
                   loop->seq, loop->key, loop->depth, loop->supportRtn);