shithub: scc

Download patch

ref: e49575b22a7255b16d487a0a9e4a344caba77b9c
parent: 472b891a54602e41655751be5a3d8331b46c6aba
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Jun 17 11:00:12 EDT 2016

[cc2-qbe] Fix basic block calculation

ASCALLx opcodes are for parameters of the call,
so they don't define a jump.

--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
@@ -487,12 +487,6 @@
 			i = pc->from1.u.sym->u.inst;
 			i->flags |= BBENTRY;
 		case ASRET:
-		case ASCALLB:
-		case ASCALLH:
-		case ASCALLW:
-		case ASCALLS:
-		case ASCALLL:
-		case ASCALLD:
 		case ASCALL:
 			if (pc->next)
 				pc->next->flags |= BBENTRY;