shithub: riscv

Download patch

ref: 835db8f7965eb27292a4f3d4a60a47fccb30d8b2
parent: 069fd98950440119fef047c09e8816e1e1601319
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Dec 31 12:00:05 EST 2023

7l: dont dump constant-pool in the middle of switch/case jump table

--- a/sys/src/cmd/7l/span.c
+++ b/sys/src/cmd/7l/span.c
@@ -163,7 +163,7 @@
 {
 	if(pool.size >= 0xffff0 || !ispcdisp(p->pc+4+pool.size - pool.start+8))
 		flushpool(p, skip);
-	else if(p->link == P)
+	else if(p->link == P || p->link->as == ACASE)
 		flushpool(p, 2);
 }