OSDN Git Service

(DBX_FINISH_SYMBOL): Deal with names created via the __asm__ construct
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Oct 1995 12:48:28 +0000 (12:48 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Oct 1995 12:48:28 +0000 (12:48 +0000)
that start with a leading '*'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10543 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/xcoffout.h

index 36cef87..432a5de 100644 (file)
   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);             \