scc

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

commit 3421169ce3c39355690ad27754764dff1e76af2a
parent 876c748841b7c52b69953dcd5b49016414a3aae4
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 11 May 2015 10:14:28 +0200

Remove npromote variable

This variable doesn't make sense anymore, because the optimizer in cc2
already try to remove the promotions when they are not needed.

Diffstat:
Mcc1/expr.c | 3---
Mcc1/main.c | 2+-
2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/cc1/expr.c b/cc1/expr.c @@ -18,10 +18,7 @@ promote(Node *np) { Type *tp; uint8_t r; - extern uint8_t npromote; - if (npromote) - return np; tp = np->type; r = tp->n.rank; if (r > RANK_UINT || tp == inttype || tp == uinttype) diff --git a/cc1/main.c b/cc1/main.c @@ -11,7 +11,7 @@ extern void ikeywords(void), lexfile(char *file); -uint8_t npromote, warnings; +uint8_t warnings; jmp_buf recover; static char *output;