OSDN Git Service

(dbxout_type_fields): Correct arguments to CHARS macro
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Apr 1995 18:35:39 +0000 (18:35 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Apr 1995 18:35:39 +0000 (18:35 +0000)
in flag_minimal_debug case.
(dbxout_symbol_name): Use DECL_ASSEMBLER_NAME unconditionally.

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

gcc/dbxout.c

index 2aea943..2e36b99 100644 (file)
@@ -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,