scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit db3fcecc66333bd273a847cad7a78e87a3628260
parent bc0bf0027ba8d82e645ee0b7099fa958be2eded3
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 10 May 2016 10:40:35 +0200

[cc2-qbe] Add comma operator

The most difficult operator.

Diffstat:
cc2/arch/qbe/cgen.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c @@ -351,9 +351,10 @@ cgen(Node *np) } code(op, np->left, load(np, LOADR), NULL); return np->right; + case OCOMMA: + return np->right; case OCALL: case OFIELD: - case OCOMMA: case OASK: case OCOLON: case OAND: