From 8e1b5fde345963863af25377c96e02ab659d4098 Mon Sep 17 00:00:00 2001 From: Stefan Kempf Date: Sat, 22 Dec 2007 12:38:57 +0000 Subject: Sync with main repo. --- usr.bin/pcc/arm/code.c | 4 ++-- usr.bin/pcc/arm/local2.c | 10 +++++++++- usr.bin/pcc/arm/order.c | 11 ++++++++++- 3 files changed, 21 insertions(+), 4 deletions(-) (limited to 'usr.bin/pcc') 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; +} -- cgit v1.2.3