~mpu/qbe

add extern linkage v1 REJECTED

dangermouseb: 1
 add extern linkage

 1 files changed, 2 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mpu/qbe/patches/41214/mbox | git am -3
Learn more about email & git

Re: [PATCH] add extern linkage Export this patch

Fix case where load elimination pass kicks in.


diff --git a/arm64/emit.c b/arm64/emit.c
index 5183a0f..c4159f6 100644
--- a/arm64/emit.c
+++ b/arm64/emit.c
@@ -441,8 +441,8 @@ emitins(Ins *i, E *e)
			goto Table;
		c = &e->fn->con[i->arg[0].val];
		if (c->type != CAddr
		|| c->sym.type != SGlo
		|| c->bits.i)
		|| (c->sym.type != SGlo && c->sym.type != SExt)
        || c->bits.i)
			die("invalid call argument %d, %d, %d", c->type, c->sym.type, c->bits.i);
		l = str(c->sym.id);
		p = l[0] == '"' ? "" : T.assym;