shithub: scc

Download patch

ref: 8ef2996b6e515b7ab4aa177ba3511bf875a7eeff
parent: 64df849f2c1cd54a41c09c553f260ecb2c793595
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Aug 5 18:00:44 EDT 2015

Remove unneeded prototypes in code.c

--- a/cc1/code.c
+++ b/cc1/code.c
@@ -12,7 +12,7 @@
             emitsym(unsigned, void *), emitfield(unsigned, void *),
             emitexp(unsigned, void *),
             emitsymid(unsigned, void *), emittext(unsigned, void *),
-            emitprint(unsigned, void *), emitfun(unsigned, void *),
+            emitfun(unsigned, void *),
             emitret(unsigned, void *), emitdcl(unsigned, void *);
 
 char *optxt[] = {
@@ -119,12 +119,6 @@
 	[ODECL] = emitdcl,
 	[OSWITCH] = emitswitch
 };
-
-static Node *simple_add(Type *, Node *, Node *),
-            *simple_sub(Type *, Node *, Node *),
-            *simple_mul(Type *, Node *, Node *),
-            *simple_div(Type *, Node *, Node *),
-            *simple_mod(Type *, Node *, Node *);
 
 void
 freetree(Node *np)