scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 626750d36023b7be39786b5f97c7f98685c83742
parent 58254c7ee093aad4ec1573667dcf55b4375059ad
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 16 Feb 2017 18:31:35 +0100

[cc2-qbe] Remove deletion of consecutive labels

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

Diffstat:
cc2/arch/qbe/optm.c | 10----------
1 file changed, 0 insertions(+), 10 deletions(-)

diff --git 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);