summaryrefslogtreecommitdiff
path: root/utils/1c
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2010-04-27 12:51:13 +0100
committerforsyth <forsyth@vitanuova.com>2010-04-27 12:51:13 +0100
commitd67b7dad77bb8aa973dad1f7c3ab0c309b114278 (patch)
tree6794120fb327d6de19cf05eed53f80d877781a3e /utils/1c
parent09da2e137d5eb0c940df35d989e4c31ec0654fc4 (diff)
20100427-1251
Diffstat (limited to 'utils/1c')
-rw-r--r--utils/1c/gc.h2
-rw-r--r--utils/1c/peep.c3
-rw-r--r--utils/1c/sgen.c6
-rw-r--r--utils/1c/swt.c2
4 files changed, 5 insertions, 8 deletions
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;