diff options
author | Anders Magnusson <ragge@cvs.openbsd.org> | 2007-12-09 18:53:03 +0000 |
---|---|---|
committer | Anders Magnusson <ragge@cvs.openbsd.org> | 2007-12-09 18:53:03 +0000 |
commit | eb5cd1326c57b80460c264cca6fde959e0ec9766 (patch) | |
tree | 4184af829255f84979a2c87b19a769812121918e | |
parent | c69a6c174600d2a8317913f50053d939f072b369 (diff) |
Updates from master repo:
- Add acceptable().
- Remove unused function setincr().
Add acce
-rw-r--r-- | usr.bin/pcc/i386/order.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/usr.bin/pcc/i386/order.c b/usr.bin/pcc/i386/order.c index 7164e8fc71b..95be8ab4461 100644 --- a/usr.bin/pcc/i386/order.c +++ b/usr.bin/pcc/i386/order.c @@ -1,4 +1,4 @@ -/* $OpenBSD: order.c,v 1.3 2007/11/16 09:00:12 otto Exp $ */ +/* $OpenBSD: order.c,v 1.4 2007/12/09 18:53:02 ragge Exp $ */ /* * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). * All rights reserved. @@ -114,18 +114,6 @@ shumul(NODE *p) } /* - * Rewrite increment/decrement operation. - */ -int -setincr(NODE *p) -{ - if (x2debug) - printf("setincr(%p)\n", p); - - return(0); -} - -/* * Rewrite operations on binary operators (like +, -, etc...). * Called as a result of table lookup. */ @@ -296,3 +284,12 @@ livecall(NODE *p) return kflag ? &r[0] : &r[1]; } + +/* + * Signal whether the instruction is acceptable for this target. + */ +int +acceptable(struct optab *op) +{ + return 1; +} |