shithub: scc

Download patch

ref: c90ecde37fd10246d10b626bb4018ebee34420fc
parent: 1f25db197b3b6fc779dbcf4ec8710f23d091ef24
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Aug 17 13:53:18 EDT 2016

[cc2-qbe] Do not break bb in calls

Calls are not bb in qbe, because although they break the control
flow, the flowe eventually returns to the original point.

--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
@@ -487,7 +487,6 @@
 			i = pc->from1.u.sym->u.inst;
 			i->flags |= BBENTRY;
 		case ASRET:
-		case ASCALL:
 			if (pc->next)
 				pc->next->flags |= BBENTRY;
 			break;