scc

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

commit ed8a3ceb831499cabb4114380b8d5bcc272c1323
parent c44bc11001d7260f04a6375711c4b2e25a75b8c1
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 12 Aug 2016 14:37:34 +0200

[cc2-qbe] Fix OSNEG in sethi()

After the addition of operator 'n' ONEG in so longer
the sign negation, and this case was not changed to
use the new name.

Diffstat:
Mcc2/arch/qbe/cgen.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c @@ -402,7 +402,7 @@ sethi(Node *np) np->op = OAND; rp = constnode(~(TUINT) 0, &np->type); goto binary; - case ONEG: + case OSNEG: np->op = OSUB; rp = lp; lp = constnode(0, &np->type);