summaryrefslogtreecommitdiff
path: root/utils/tc
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/tc
parent09da2e137d5eb0c940df35d989e4c31ec0654fc4 (diff)
20100427-1251
Diffstat (limited to 'utils/tc')
-rw-r--r--utils/tc/gc.h2
-rw-r--r--utils/tc/peep.c2
-rw-r--r--utils/tc/sgen.c6
-rw-r--r--utils/tc/swt.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/utils/tc/gc.h b/utils/tc/gc.h
index e61a1967..a4135374 100644
--- a/utils/tc/gc.h
+++ b/utils/tc/gc.h
@@ -267,7 +267,7 @@ void gpseudo(int, Sym*, Node*);
int swcmp(const void*, const void*);
void doswit(Node*);
void swit1(C1*, int, long, Node*);
-void cas(void);
+void casf(void);
void bitload(Node*, Node*, Node*, Node*, Node*);
void bitstore(Node*, Node*, Node*, Node*, Node*);
long outstring(char*, long);
diff --git a/utils/tc/peep.c b/utils/tc/peep.c
index e53b0cdd..c94a3e41 100644
--- a/utils/tc/peep.c
+++ b/utils/tc/peep.c
@@ -635,7 +635,7 @@ copyu(Prog *p, Adr *v, Adr *s)
return 3;
return 0;
}
- return 0;
+ /* not reached */
}
int
diff --git a/utils/tc/sgen.c b/utils/tc/sgen.c
index d76de7de..ea5fba44 100644
--- a/utils/tc/sgen.c
+++ b/utils/tc/sgen.c
@@ -175,7 +175,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;
@@ -186,7 +186,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;
@@ -210,7 +210,7 @@ loop:
cn = cases;
cases = C;
- cas();
+ casf();
sbc = breakpc;
breakpc = pc;
diff --git a/utils/tc/swt.c b/utils/tc/swt.c
index 1ded1e5c..04d879c2 100644
--- a/utils/tc/swt.c
+++ b/utils/tc/swt.c
@@ -89,7 +89,7 @@ swit1(C1 *q, int nc, long def, Node *n)
}
void
-cas(void)
+casf(void)
{
Case *c;