aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1995-04-12 11:35:39 -0700
committerJim Wilson <wilson@gcc.gnu.org>1995-04-12 11:35:39 -0700
commit6376fd9aedba6a655e183eeb10760382d2e21411 (patch)
treec5914dffec690dfeb5cc49f46050983d4a88750c /gcc
parent95b2ff8be2f8234a05e9aa83296e23cf0a1e2642 (diff)
downloadgcc-6376fd9aedba6a655e183eeb10760382d2e21411.zip
gcc-6376fd9aedba6a655e183eeb10760382d2e21411.tar.gz
gcc-6376fd9aedba6a655e183eeb10760382d2e21411.tar.bz2
(dbxout_type_fields): Correct arguments to CHARS macro in flag_minimal_debug case.
(dbxout_type_fields): Correct arguments to CHARS macro in flag_minimal_debug case. (dbxout_symbol_name): Use DECL_ASSEMBLER_NAME unconditionally. From-SVN: r9366
Diffstat (limited to 'gcc')
-rw-r--r--gcc/dbxout.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 2aea943..2e36b99 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -622,7 +622,7 @@ dbxout_type_fields (type)
&& DECL_ASSEMBLER_NAME (tem))
{
have_used_extensions = 1;
- CHARS (3 + IDENTIFIER_LENGTH (DECL_NAME (TYPE_NAME (DECL_FCONTEXT (tem)))));
+ CHARS (3 + IDENTIFIER_LENGTH (DECL_ASSEMBLER_NAME (tem)));
fputs (IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (tem)), asmfile);
dbxout_type (DECL_FCONTEXT (tem), 0, 0);
fprintf (asmfile, ":");
@@ -2006,15 +2006,9 @@ dbxout_symbol_name (decl, suffix, letter)
{
/* One slight hitch: if this is a VAR_DECL which is a static
class member, we must put out the mangled name instead of the
- DECL_NAME. */
-
- char *name;
- /* Note also that static member (variable) names DO NOT begin
+ DECL_NAME. Note also that static member (variable) names DO NOT begin
with underscores in .stabs directives. */
- if (DECL_LANG_SPECIFIC (decl))
- name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
- else
- name = IDENTIFIER_POINTER (DECL_NAME (decl));
+ char *name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
if (name == 0)
name = "(anon)";
fprintf (asmfile, "%s \"%s%s:", ASM_STABS_OP, name,