[hackers] [scc] [cc2-qbe] Fix basic block calculation || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 17 Jun 2016 15:01:01 +0200 (CEST)

commit adb3382f152a1c9ce2ffdad8238bdea13961df48
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Jun 17 15:00:12 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Jun 17 15:00:12 2016 +0200

    [cc2-qbe] Fix basic block calculation
    
    ASCALLx opcodes are for parameters of the call,
    so they don't define a jump.

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index 5216f06..120e9bf 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
_AT_@ -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;
Received on Fri Jun 17 2016 - 15:01:01 CEST

This archive was generated by hypermail 2.3.0 : Fri Jun 17 2016 - 15:12:14 CEST