[hackers] [scc] [cc2-qbe] Add comma operator || Roberto E. Vargas Caballero
commit db3fcecc66333bd273a847cad7a78e87a3628260
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue May 10 10:40:35 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Tue May 10 10:40:35 2016 +0200
[cc2-qbe] Add comma operator
The most difficult operator.
diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c
index c6cf007..bd26643 100644
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
_AT_@ -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:
Received on Tue May 10 2016 - 10:41:15 CEST
This archive was generated by hypermail 2.3.0
: Tue May 10 2016 - 10:48:17 CEST