shithub: mc

Download patch

ref: a8a99dd9a47f30f7d50492650345e9dc346b57db
parent: 5cf89f06e6dc31901b495ad16adc1cd93f586ebf
author: Ori Bernstein <[email protected]>
date: Mon Jun 11 09:10:37 EDT 2012

Put the BB into the fix list instead of the node.

    That way, we're trying to fix the right things.

--- a/opt/df.c
+++ b/opt/df.c
@@ -40,7 +40,7 @@
         case Ocjmp:
             lappend(&bb->nl, &bb->nnl, n);
             lappend(&cfg->fixjmp, &cfg->nfixjmp, n);
-            lappend(&cfg->fixblk, &cfg->nfixblk, n);
+            lappend(&cfg->fixblk, &cfg->nfixblk, bb);
             return 1;
             break;
         default:
@@ -56,7 +56,7 @@
     Bb *bb, *targ;
     Node *a, *b;
     int i;
-    
+
     cfg = zalloc(sizeof(Cfg));
     cfg->lblmap = mkht(strhash, streq);
     bb = mkbb(cfg);