summaryrefslogtreecommitdiff
path: root/usr.bin/pcc/ccom
diff options
context:
space:
mode:
authorAnders Magnusson <ragge@cvs.openbsd.org>2007-11-17 12:00:38 +0000
committerAnders Magnusson <ragge@cvs.openbsd.org>2007-11-17 12:00:38 +0000
commit0d9bbab50d4ee8446898ec80a318245a50ec3c38 (patch)
tree34dbf2333df047eb12dc5928de40c7eb545c6e56 /usr.bin/pcc/ccom
parent97676e492490b3a90e790dc7077f8ddc269c942c (diff)
Updates from master repo:
Replace ugly target macros with function calls (gmcgarry).
Diffstat (limited to 'usr.bin/pcc/ccom')
-rw-r--r--usr.bin/pcc/ccom/trees.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/usr.bin/pcc/ccom/trees.c b/usr.bin/pcc/ccom/trees.c
index 4186a948c5f..790e4099466 100644
--- a/usr.bin/pcc/ccom/trees.c
+++ b/usr.bin/pcc/ccom/trees.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trees.c,v 1.7 2007/11/16 09:00:12 otto Exp $ */
+/* $OpenBSD: trees.c,v 1.8 2007/11/17 12:00:37 ragge Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved.
@@ -2106,9 +2106,7 @@ p2tree(NODE *p)
struct symtab *q;
int ty;
-# ifdef MYP2TREE
- MYP2TREE(p); /* local action can be taken here; then return... */
-# endif
+ myp2tree(p); /* local action can be taken here */
ty = coptype(p->n_op);
@@ -2175,9 +2173,7 @@ p2tree(NODE *p)
struct symtab *q;
int ty;
-# ifdef MYP2TREE
- MYP2TREE(p); /* local action can be taken here; then return... */
-# endif
+ myp2tree(p); /* local action can be taken here */
ty = coptype(p->n_op);
@@ -2321,8 +2317,7 @@ send_passt(int type, ...)
ip->lineno = lineno;
switch (type) {
case IP_NODE:
- if (lastloc != PROG)
- setloc1(PROG);
+ setloc1(PROG);
ip->ip_node = va_arg(ap, NODE *);
break;
case IP_EPILOG: