[hackers] [scc] [cc1] Add fold case for !! || Roberto E. Vargas Caballero
commit 6590f76d9831666123aa9aa0de715f0b56b69126
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Feb 4 22:01:03 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Feb 4 22:06:07 2017 +0100
[cc1] Add fold case for !!
!!(a || b)
In this case we will have to ONEG together which can be folded.
diff --git a/cc1/fold.c b/cc1/fold.c
index 90a3445..7f8416a 100644
--- a/cc1/fold.c
+++ b/cc1/fold.c
_AT_@ -377,6 +377,10 @@ foldunary(Node *np, Node *l)
Node *aux;
switch (np->op) {
+ case ONEG:
+ if (l->op == ONEG)
+ break;
+ return NULL;
case OADD:
DBG("FOLD unary delete %d", np->op);
np->left = NULL;
Received on Sat Feb 04 2017 - 22:06:20 CET
This archive was generated by hypermail 2.3.0
: Sat Feb 04 2017 - 22:12:23 CET