summaryrefslogtreecommitdiff
path: root/gcc/xcoffout.h
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-10-29 12:48:28 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-10-29 12:48:28 +0000
commit8903041dab755700de1ac492f41f33617345de50 (patch)
tree9d318562da92b311dfbf4c8316e1645509c3dbf0 /gcc/xcoffout.h
parent7539b48162fd8642dd14d8d9c2c9dd63a6ad3a1f (diff)
downloadgcc-8903041dab755700de1ac492f41f33617345de50.tar.gz
(DBX_FINISH_SYMBOL): Deal with names created via the __asm__ construct
that start with a leading '*'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10543 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/xcoffout.h')
-rw-r--r--gcc/xcoffout.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/xcoffout.h b/gcc/xcoffout.h
index 36cef87b5d4..432a5de9f74 100644
--- a/gcc/xcoffout.h
+++ b/gcc/xcoffout.h
@@ -84,9 +84,12 @@
if (current_sym_addr && current_sym_code == N_FUN \
&& GET_CODE (current_sym_addr) == SYMBOL_REF) \
{ \
- char *_p; \
- for (_p = XSTR (current_sym_addr, 0); *_p != '[' && *_p; _p++) \
- fprintf (asmfile, "%c", *_p); \
+ char *_p = XSTR (current_sym_addr, 0); \
+ if (*_p == '*') \
+ fprintf (asmfile, "%s", _p+1); \
+ else \
+ for (; *_p != '[' && *_p; _p++) \
+ fprintf (asmfile, "%c", *_p); \
} \
else if (current_sym_addr) \
output_addr_const (asmfile, current_sym_addr); \