scc

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

commit 4ae110b13a59d434253ce9d39aa231e0a01fee8d
parent 249a65302879e222ad849fa548a41b5574bd608a
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 17 Aug 2016 14:23:41 +0200

[cc2-qbe] Add support for OPTR

Take the content of a pointer.

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 @@ -504,6 +504,8 @@ rhs(Node *np, Node *ret) return ternary(np, ret); case OCOMMA: return rhs(np, ret); + case OPTR: + return load(rhs(l, &aux1), ret); default: abort(); }