summaryrefslogtreecommitdiff
path: root/usr.bin/pcc/i386
diff options
context:
space:
mode:
authorAnders Magnusson <ragge@cvs.openbsd.org>2007-11-04 18:54:04 +0000
committerAnders Magnusson <ragge@cvs.openbsd.org>2007-11-04 18:54:04 +0000
commit472ac581e9dccce7783fff4a6d1a03b02b09342b (patch)
treeecb5900c88d4183863aeeb2f63cf1d1f1f71c7b7 /usr.bin/pcc/i386
parent13fe0f8d7c10a5583f5496c440de6ed39eb32c74 (diff)
Update from master repo:
> Print string identifier in case OREG has a relocatable offset.
Diffstat (limited to 'usr.bin/pcc/i386')
-rw-r--r--usr.bin/pcc/i386/local2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/pcc/i386/local2.c b/usr.bin/pcc/i386/local2.c
index 17d756ce90d..f748fd55a5f 100644
--- a/usr.bin/pcc/i386/local2.c
+++ b/usr.bin/pcc/i386/local2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: local2.c,v 1.2 2007/10/27 14:14:14 ragge Exp $ */
+/* $OpenBSD: local2.c,v 1.3 2007/11/04 18:54:03 ragge Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved.
@@ -709,6 +709,8 @@ adrput(FILE *io, NODE *p)
case OREG:
r = p->n_rval;
+ if (p->n_name[0])
+ printf("%s%s", p->n_name, p->n_lval ? "+" : "");
if (p->n_lval)
fprintf(io, "%d", (int)p->n_lval);
if (R2TEST(r)) {