Commit f9d99dd2 by Jason Merrill

fix

From-SVN: r36574
parent f2165396
...@@ -2215,11 +2215,19 @@ dbxout_symbol_name (decl, suffix, letter) ...@@ -2215,11 +2215,19 @@ dbxout_symbol_name (decl, suffix, letter)
const char *suffix; const char *suffix;
int letter; int letter;
{ {
/* One slight hitch: if this is a VAR_DECL which is a static const char *name;
class member, we must put out the mangled name instead of the
DECL_NAME. Note also that static member (variable) names DO NOT begin if (DECL_CONTEXT (decl) && TYPE_P (DECL_CONTEXT (decl)))
with underscores in .stabs directives. */ /* One slight hitch: if this is a VAR_DECL which is a static
const char *name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)); class member, we must put out the mangled name instead of the
DECL_NAME. Note also that static member (variable) names DO NOT begin
with underscores in .stabs directives. */
name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
else
/* ...but if we're function-local, we don't want to include the junk
added by ASM_FORMAT_PRIVATE_NAME. */
name = IDENTIFIER_POINTER (DECL_NAME (decl));
if (name == 0) if (name == 0)
name = "(anon)"; name = "(anon)";
fprintf (asmfile, "%s \"%s%s:", ASM_STABS_OP, name, fprintf (asmfile, "%s \"%s%s:", ASM_STABS_OP, name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment