(sdbout_symbol): Use DECL_ASSEMBLER_NAME if
authorJim Wilson <wilson@gcc.gnu.org>
Sat, 18 Jun 1994 21:01:07 +0000 (14:01 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Sat, 18 Jun 1994 21:01:07 +0000 (14:01 -0700)
DECL_LANG_SPECIFIC is set.

From-SVN: r7522

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)