scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 8e6a3dc26f0f1ee374f29cccb901722f31070776
parent fa3a69095e3c841ba8bfc3a099c66e8f0112e47b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 17 Aug 2016 15:53:51 +0200

[cc2-qbe] Add support for OADDR

In this case we only have to call to lhs() because
we do not want to load the result of the operation.

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

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c @@ -507,6 +507,8 @@ rhs(Node *np, Node *ret) return rhs(np, ret); case OPTR: return load(rhs(l, &aux1), ret); + case OADDR: + return lhs(l, ret); default: abort(); }