[hackers] [scc] [cc2-qbe] Remove deletion of consecutive labels || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Thu, 16 Feb 2017 18:42:51 +0100 (CET)

commit 626750d36023b7be39786b5f97c7f98685c83742
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Feb 16 18:31:35 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -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);
Received on Thu Feb 16 2017 - 18:42:51 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 16 2017 - 18:48:17 CET