commit 626750d36023b7be39786b5f97c7f98685c83742
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Thu Feb 16 18:31:35 2017 +0100
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Thu Feb 16 18:42:41 2017 +0100

    [cc2-qbe] Remove deletion of consecutive labels
    
    Ancient versions of qbe didn't support consecutive labels, but this
    is not true anymore.

diff --git a/cc2/arch/qbe/optm.c b/cc2/arch/qbe/optm.c
index 8f3eb14..4f71108 100644
--- a/cc2/arch/qbe/optm.c
+++ b/cc2/arch/qbe/optm.c
@@ -29,16 +29,6 @@ optm_dep(Node *np)
                if (!op || op == ONOP || op == OBRANCH || (op != ORET && op != 
OJMP))
                        addstmt(newnode(ORET), KEEPCUR);
                break;
-       case ONOP:
-               if (next->op == ONOP) {
-                       sym = np->u.sym;
-                       osym = next->u.sym;
-                       osym->id = sym->id;
-                       osym->numid = sym->numid;
-                       osym->u.stmt = sym->u.stmt;
-                       return NULL;
-               }
-               break;
        case OBRANCH:
                if (!next->label) {
                        sym = getsym(TMPSYM);

Reply via email to