diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-10-29 12:48:28 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-10-29 12:48:28 +0000 |
commit | 8903041dab755700de1ac492f41f33617345de50 (patch) | |
tree | 9d318562da92b311dfbf4c8316e1645509c3dbf0 /gcc/xcoffout.h | |
parent | 7539b48162fd8642dd14d8d9c2c9dd63a6ad3a1f (diff) | |
download | gcc-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.h | 9 |
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); \ |