aboutsummaryrefslogtreecommitdiff
path: root/gcc/xcoffout.h
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-10-29 07:48:28 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-10-29 07:48:28 -0500
commitbe89f7bd13fe13d3f35c8faf389fb7733b8a5823 (patch)
tree9d318562da92b311dfbf4c8316e1645509c3dbf0 /gcc/xcoffout.h
parent4255aa9bc28042141d56526567ae596c5e15a302 (diff)
downloadgcc-be89f7bd13fe13d3f35c8faf389fb7733b8a5823.zip
gcc-be89f7bd13fe13d3f35c8faf389fb7733b8a5823.tar.gz
gcc-be89f7bd13fe13d3f35c8faf389fb7733b8a5823.tar.bz2
(DBX_FINISH_SYMBOL): Deal with names created via the __asm__ construct
that start with a leading '*'. From-SVN: r10543
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 36cef87..432a5de 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); \