From d67b7dad77bb8aa973dad1f7c3ab0c309b114278 Mon Sep 17 00:00:00 2001 From: forsyth Date: Tue, 27 Apr 2010 12:51:13 +0100 Subject: 20100427-1251 --- utils/1c/gc.h | 2 +- utils/1c/peep.c | 3 --- utils/1c/sgen.c | 6 +++--- utils/1c/swt.c | 2 +- 4 files changed, 5 insertions(+), 8 deletions(-) (limited to 'utils/1c') diff --git a/utils/1c/gc.h b/utils/1c/gc.h index 288971f3..ca2c84fb 100644 --- a/utils/1c/gc.h +++ b/utils/1c/gc.h @@ -280,7 +280,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/1c/peep.c b/utils/1c/peep.c index e0a535c2..7583da5d 100644 --- a/utils/1c/peep.c +++ b/utils/1c/peep.c @@ -565,9 +565,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/1c/sgen.c b/utils/1c/sgen.c index b7da4762..cb289eaa 100644 --- a/utils/1c/sgen.c +++ b/utils/1c/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/1c/swt.c b/utils/1c/swt.c index dc735a29..34daeb1e 100644 --- a/utils/1c/swt.c +++ b/utils/1c/swt.c @@ -106,7 +106,7 @@ linear: } void -cas(void) +casf(void) { Case *c; -- cgit v1.2.3