diff options
| author | forsyth <forsyth@vitanuova.com> | 2010-04-27 12:51:13 +0100 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2010-04-27 12:51:13 +0100 |
| commit | d67b7dad77bb8aa973dad1f7c3ab0c309b114278 (patch) | |
| tree | 6794120fb327d6de19cf05eed53f80d877781a3e /utils/2c | |
| parent | 09da2e137d5eb0c940df35d989e4c31ec0654fc4 (diff) | |
20100427-1251
Diffstat (limited to 'utils/2c')
| -rw-r--r-- | utils/2c/gc.h | 2 | ||||
| -rw-r--r-- | utils/2c/peep.c | 3 | ||||
| -rw-r--r-- | utils/2c/sgen.c | 6 | ||||
| -rw-r--r-- | utils/2c/swt.c | 2 |
4 files changed, 5 insertions, 8 deletions
diff --git a/utils/2c/gc.h b/utils/2c/gc.h index ab30649e..75dd85c0 100644 --- a/utils/2c/gc.h +++ b/utils/2c/gc.h @@ -297,7 +297,7 @@ Node* nodconst(long); int swcmp(const void*, const void*); void doswit(int, Node*); void swit1(C1*, int, long, int, Node*); -void cas(void); +void casf(void); int bitload(Node*, int, int, int, Node*); void bitstore(Node*, int, int, int, int, Node*); long outstring(char*, long); diff --git a/utils/2c/peep.c b/utils/2c/peep.c index 4bde0d40..7026e628 100644 --- a/utils/2c/peep.c +++ b/utils/2c/peep.c @@ -572,9 +572,6 @@ anyvar(Adr *a) if(regtyp(a->type)) return 1; return 0; - if(a->type == D_AUTO || a->type == D_PARAM) - return 1; - return 0; } /* diff --git a/utils/2c/sgen.c b/utils/2c/sgen.c index 85925f72..b4020a99 100644 --- a/utils/2c/sgen.c +++ b/utils/2c/sgen.c @@ -131,7 +131,7 @@ loop: if(cases == C) diag(n, "case/default outside a switch"); if(l == Z) { - cas(); + casf(); cases->val = 0; cases->def = 1; cases->label = pc; @@ -143,7 +143,7 @@ loop: goto rloop; if(l->op == OCONST) if(typechl[l->type->etype]) { - cas(); + casf(); cases->val = l->vconst; cases->def = 0; cases->label = pc; @@ -174,7 +174,7 @@ loop: cn = cases; cases = C; - cas(); + casf(); sbc = breakpc; breakpc = pc; diff --git a/utils/2c/swt.c b/utils/2c/swt.c index 442d1fea..ca6895f9 100644 --- a/utils/2c/swt.c +++ b/utils/2c/swt.c @@ -186,7 +186,7 @@ linear: } void -cas(void) +casf(void) { Case *c; |
