[hackers] [scc/qbe] [cc2-qbe] Do not break bb in calls || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Wed, 17 Aug 2016 17:55:49 +0200 (CEST)

commit 53031b3938c7edfd52ac31b7fe80c782fec3dfcd
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed Aug 17 17:53:18 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Wed Aug 17 17:53:18 2016 +0200

    [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.

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index 8f10fe8..72dc4d7 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
_AT_@ -487,7 +487,6 @@ getbblocks(void)
                         i = pc->from1.u.sym->u.inst;
                         i->flags |= BBENTRY;
                 case ASRET:
- case ASCALL:
                         if (pc->next)
                                 pc->next->flags |= BBENTRY;
                         break;
Received on Wed Aug 17 2016 - 17:55:49 CEST

This archive was generated by hypermail 2.3.0 : Wed Aug 17 2016 - 18:00:34 CEST