summaryrefslogtreecommitdiff
path: root/usr.bin/pcc
diff options
context:
space:
mode:
authorStefan Kempf <stefan@cvs.openbsd.org>2007-12-22 12:38:57 +0000
committerStefan Kempf <stefan@cvs.openbsd.org>2007-12-22 12:38:57 +0000
commit8e1b5fde345963863af25377c96e02ab659d4098 (patch)
treede4d6f7baa348f878b48eb3ff08c43ab7aae4941 /usr.bin/pcc
parente60cf4ec4a4a8460d530bc904a1542cf5a516f5a (diff)
Sync with main repo.
Diffstat (limited to 'usr.bin/pcc')
-rw-r--r--usr.bin/pcc/arm/code.c4
-rw-r--r--usr.bin/pcc/arm/local2.c10
-rw-r--r--usr.bin/pcc/arm/order.c11
3 files changed, 21 insertions, 4 deletions
diff --git a/usr.bin/pcc/arm/code.c b/usr.bin/pcc/arm/code.c
index 76004e533e9..006f62d1a8e 100644
--- a/usr.bin/pcc/arm/code.c
+++ b/usr.bin/pcc/arm/code.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: code.c,v 1.1 2007/11/25 18:45:06 otto Exp $ */
+/* $OpenBSD: code.c,v 1.2 2007/12/22 12:38:56 stefan Exp $ */
/*
* Copyright (c) 2007 Gregory McGarry (g.mcgarry@ieee.org).
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
@@ -132,7 +132,7 @@ bfcode(struct symtab **sp, int cnt)
p = tempnode(0, PTR+STRTY, 0, cftnsp->ssue);
rvnr = p->n_lval;
q = block(REG, NIL, NIL, PTR+STRTY, 0, cftnsp->ssue);
- q->n_rval = start++;
+ q->n_rval = R0 + start++;
p = buildtree(ASSIGN, p, q);
ecomp(p);
}
diff --git a/usr.bin/pcc/arm/local2.c b/usr.bin/pcc/arm/local2.c
index b278573efb1..4f0f2e6748d 100644
--- a/usr.bin/pcc/arm/local2.c
+++ b/usr.bin/pcc/arm/local2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: local2.c,v 1.1 2007/11/25 18:45:06 otto Exp $ */
+/* $OpenBSD: local2.c,v 1.2 2007/12/22 12:38:56 stefan Exp $ */
/*
* Copyright (c) 2007 Gregory McGarry (g.mcgarry@ieee.org).
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
@@ -952,3 +952,11 @@ special(NODE *p, int shape)
{
return SRNOPE;
}
+
+/*
+ * Target-dependent command-line options.
+ */
+void
+mflags(char *str)
+{
+}
diff --git a/usr.bin/pcc/arm/order.c b/usr.bin/pcc/arm/order.c
index 09f4bbcde60..16798daec77 100644
--- a/usr.bin/pcc/arm/order.c
+++ b/usr.bin/pcc/arm/order.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: order.c,v 1.1 2007/11/25 18:45:06 otto Exp $ */
+/* $OpenBSD: order.c,v 1.2 2007/12/22 12:38:56 stefan Exp $ */
/*
* Copyright (c) 2007 Gregory McGarry (g.mcgarry@ieee.org).
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
@@ -291,3 +291,12 @@ livecall(NODE *p)
return &r[4 - num];
}
+
+/*
+ * Signal whether the instruction is acceptable for this target.
+ */
+int
+acceptable(struct optab *op)
+{
+ return 1;
+}