OSDN Git Service

(sdbout_symbol): Use DECL_ASSEMBLER_NAME if
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Jun 1994 21:01:07 +0000 (21:01 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Jun 1994 21:01:07 +0000 (21:01 +0000)
DECL_LANG_SPECIFIC is set.

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

gcc/sdbout.c

index 583dda0..6a03108 100644 (file)
@@ -787,7 +787,10 @@ sdbout_symbol (decl, local)
        return;
 
       /* Record the name for, starting a symtab entry.  */
-      name = IDENTIFIER_POINTER (DECL_NAME (decl));
+      if (DECL_LANG_SPECIFIC (decl))
+       name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
+      else
+       name = IDENTIFIER_POINTER (DECL_NAME (decl));
 
       if (GET_CODE (value) == MEM
          && GET_CODE (XEXP (value, 0)) == SYMBOL_REF)