summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstefan <stefan@openbsd.org>2007-12-22 12:48:52 +0000
committerstefan <stefan@openbsd.org>2007-12-22 12:48:52 +0000
commit01f3f8787d3735355163983fb7dfc4cc3e33588d (patch)
treef1f2eb9819de288492f204a95440485112c3734a
parentSync with main repo. (diff)
downloadwireguard-openbsd-01f3f8787d3735355163983fb7dfc4cc3e33588d.tar.xz
wireguard-openbsd-01f3f8787d3735355163983fb7dfc4cc3e33588d.zip
Sync with main repo.
-rw-r--r--usr.bin/pcc/m16c/code.c12
-rw-r--r--usr.bin/pcc/m16c/local2.c27
-rw-r--r--usr.bin/pcc/m16c/macdefs.h11
-rw-r--r--usr.bin/pcc/m16c/order.c10
4 files changed, 30 insertions, 30 deletions
diff --git a/usr.bin/pcc/m16c/code.c b/usr.bin/pcc/m16c/code.c
index 80bcdd70cef..90f665ff1f5 100644
--- a/usr.bin/pcc/m16c/code.c
+++ b/usr.bin/pcc/m16c/code.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: code.c,v 1.3 2007/11/22 15:06:43 stefan Exp $ */
+/* $OpenBSD: code.c,v 1.4 2007/12/22 12:48:52 stefan Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved.
@@ -320,16 +320,6 @@ bycode(int t, int i)
}
/*
- * n integer words of zeros
- */
-void
-zecode(int n)
-{
- printf(" .zero %d\n", n * (SZINT/SZCHAR));
- inoff += n * SZINT;
-}
-
-/*
* return the alignment of field of type t
*/
int
diff --git a/usr.bin/pcc/m16c/local2.c b/usr.bin/pcc/m16c/local2.c
index b1670affc92..25335cafaa0 100644
--- a/usr.bin/pcc/m16c/local2.c
+++ b/usr.bin/pcc/m16c/local2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: local2.c,v 1.1 2007/10/07 17:58:51 otto Exp $ */
+/* $OpenBSD: local2.c,v 1.2 2007/12/22 12:48:52 stefan Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved.
@@ -37,13 +37,6 @@ void genargs(NODE *p);
static int ftlab1, ftlab2;
void
-lineid(int l, char *fn)
-{
- /* identify line l and file fn */
- printf("# line %d, file %s\n", l, fn);
-}
-
-void
deflab(int label)
{
printf(LABFMT ":\n", label);
@@ -469,6 +462,16 @@ cbgen(int o, int lab)
printf(" %s " LABFMT "\n", ccbranches[o-EQ], lab);
}
+void
+mycanon(NODE *p)
+{
+}
+
+void
+myoptim(struct interpass *ip)
+{
+}
+
#if 0
void
mygenregs(NODE *p)
@@ -637,3 +640,11 @@ lastcall(NODE *p)
sizen += argsiz(p->n_right);
sizen += argsiz(p);
}
+
+/*
+ * Target-dependent command-line options.
+ */
+void
+mflags(char *str)
+{
+}
diff --git a/usr.bin/pcc/m16c/macdefs.h b/usr.bin/pcc/m16c/macdefs.h
index 6018c867261..ea981300f59 100644
--- a/usr.bin/pcc/m16c/macdefs.h
+++ b/usr.bin/pcc/m16c/macdefs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: macdefs.h,v 1.1 2007/10/07 17:58:51 otto Exp $ */
+/* $OpenBSD: macdefs.h,v 1.2 2007/12/22 12:48:52 stefan Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved.
@@ -104,8 +104,6 @@ typedef long long OFFSZ;
#define BACKAUTO /* stack grows negatively for automatics */
#define BACKTEMP /* stack grows negatively for temporaries */
-//#define MYP2TREE(p) myp2tree(p);
-
#undef FIELDOPS /* no bit-field instructions */
#define RTOLBYTES /* bytes are numbered right to left */
@@ -191,13 +189,6 @@ int COLORMAP(int c, int *r);
#define ENCRA(x,y) ((x) << (6+y*6)) /* encode regs in int */
#define MYADDEDGE(x, t)
-#define MYREADER(p) myreader(p)
-#define MYP2TREE(p) myp2tree(p)
-
-#if 0
-#define MYCANON(p) mycanon(p)
-#define MYOPTIM
-#endif
#ifndef NEW_READER
//#define TAILCALL
diff --git a/usr.bin/pcc/m16c/order.c b/usr.bin/pcc/m16c/order.c
index dab11a8d446..134f7f156f3 100644
--- a/usr.bin/pcc/m16c/order.c
+++ b/usr.bin/pcc/m16c/order.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: order.c,v 1.3 2007/11/17 12:46:03 otto Exp $ */
+/* $OpenBSD: order.c,v 1.4 2007/12/22 12:48:52 stefan Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved.
@@ -610,3 +610,11 @@ livecall(NODE *p)
return &r[0];
}
+/*
+ * Signal whether the instruction is acceptable for this target.
+ */
+int
+acceptable(struct optab *op)
+{
+ return 1;
+}