commit fe6a9fbc790e657a4dce00fdccfd72f5c235a3c9
parent e4b354e60f5965d973035f14fb82c3e49e23d49c
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 9 Dec 2024 09:58:27 +0100
cc2: Remove unused function newfun()
Diffstat:
4 files changed, 2 insertions(+), 16 deletions(-)
diff --git a/src/cmd/scc-cc/cc2/amd64-sysv/code.c b/src/cmd/scc-cc/cc2/amd64-sysv/code.c
@@ -194,11 +194,6 @@ defpar(Symbol *sym)
}
void
-newfun(void)
-{
-}
-
-void
writeout(void)
{
}
diff --git a/src/cmd/scc-cc/cc2/cc2.h b/src/cmd/scc-cc/cc2/cc2.h
@@ -229,7 +229,7 @@ extern void peephole(void);
/* code.c */
extern void data(Node *np);
-extern void writeout(void), endinit(void), newfun(void);
+extern void writeout(void), endinit(void);
extern void code(int op, Node *to, Node *from1, Node *from2);
extern void defvar(Symbol *), defpar(Symbol *), defglobal(Symbol *);
extern void setlabel(Symbol *sym), getbblocks(void);
diff --git a/src/cmd/scc-cc/cc2/i386-sysv/code.c b/src/cmd/scc-cc/cc2/i386-sysv/code.c
@@ -193,11 +193,6 @@ defvar(Symbol *sym)
}
void
-newfun(void)
-{
-}
-
-void
writeout(void)
{
}
diff --git a/src/cmd/scc-cc/cc2/z80-scc/code.c b/src/cmd/scc-cc/cc2/z80-scc/code.c
@@ -155,11 +155,7 @@ size2asm(Type *tp)
printf(s, tp->size);
}
-void
-newfun()
-{
- offpar = offvar = 0;
-}
+/* TODO: how are initialized offpar and offvar??? */
void
defpar(Symbol *sym)