shithub: scc

Download patch

ref: 7e170078b3722b4a586f2a94b6665f4a8912b720
parent: 28a1b8699806f5cae305f6d975f9f83c3965a4f1
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Feb 16 13:31:35 EST 2017

[cc2-qbe] Remove deletion of consecutive labels

Ancient versions of qbe didn't support consecutive labels, but this
is not true anymore.

--- a/cc2/arch/qbe/optm.c
+++ b/cc2/arch/qbe/optm.c
@@ -29,16 +29,6 @@
 		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);