]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(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 583dda0f86ede3c2e8156a11b913a704de74a405..6a031085632bbdd30900cf071dcefe8054971dbd 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)