scc

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

commit adb3382f152a1c9ce2ffdad8238bdea13961df48
parent 4a3346ffe53bb6a4110adef94f63b12a13db8ae1
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 17 Jun 2016 15:00:12 +0200

[cc2-qbe] Fix basic block calculation

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

Diffstat:
Mcc2/arch/qbe/code.c | 6------
1 file changed, 0 insertions(+), 6 deletions(-)

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c @@ -487,12 +487,6 @@ getbblocks(void) 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;