scc

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

commit 18152113a1cefc45b164a77e476e2b958744f8cc
parent e961b8c2e12cb80e69a698f14516601aca4cb016
Author: Roberto E. Vargas Caballero <Roberto E. Vargas Caballero>
Date:   Fri, 22 Apr 2016 22:03:17 +0200

[cc2-qbe] Add OPTR operation

In this case we only have to load twice the child
of the node.

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

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c @@ -290,7 +290,10 @@ cgen(Node *np) case OPAR: case ONEG: case OADDR: + abort(); case OPTR: + np->left = load(load(l)); + return tmpnode(np); case OINC: case ODEC: abort();