(DBX_FINISH_SYMBOL): Get variable name from DECL_RTL
authorJim Wilson <wilson@gcc.gnu.org>
Thu, 23 Dec 1993 01:35:24 +0000 (17:35 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 23 Dec 1993 01:35:24 +0000 (17:35 -0800)
instead of from DECL_ASSEMBLER_NAME.

From-SVN: r6274

gcc/xcoffout.h

index 7efa984d08b2abd154f578ae6243c20aa9ae604a..ab89cb13e35b9e98589fc9af8b7203bfaf9a6809 100644 (file)
@@ -91,7 +91,7 @@
   else if (current_sym_addr)                                   \
     output_addr_const (asmfile, current_sym_addr);             \
   else if (current_sym_code == N_GSYM)                         \
-    fprintf (asmfile, "%s", IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (SYM))); \
+    assemble_name (asmfile, XSTR (XEXP (DECL_RTL (sym), 0), 0)); \
   else                                                         \
     fprintf (asmfile, "%d", current_sym_value);                        \
   fprintf (asmfile, ",%d,0\n", stab_to_sclass (current_sym_code)); \