diff options
author | Devang Patel <dpatel@apple.com> | 2005-07-27 18:39:54 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2005-07-27 18:39:54 +0000 |
commit | 773e15e68165259aabe2031d423ead537f16d408 (patch) | |
tree | c20c36987b4a78228e7bc01e61e75216954a720d /gcc/cp/decl.c | |
parent | 2c4a080abd1df6b88981cd058a376ff44683f156 (diff) |
Radar 4182972
* name-lookup.c (pushtag): Do not set DECL_IGNORED_P bit.
* decl.c (grokdeclarator): Do not generate debug info for anonymous
aggregate type when it receives real name.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/apple-local-200502-branch@102438 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index bfd937951a1..6f8e85e7526 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -7762,19 +7762,7 @@ grokdeclarator (const cp_declarator *declarator, /* Replace the anonymous name with the real name everywhere. */ for (t = TYPE_MAIN_VARIANT (type); t; t = TYPE_NEXT_VARIANT (t)) if (TYPE_NAME (t) == oldname) - /* APPLE LOCAL begin 4182972 */ - { - TYPE_NAME (t) = decl; - - /* Debug info was not generated earlier for anonymous aggregates. - Now is the time generate debug info for such types. */ - if (ANON_AGGRNAME_P (DECL_NAME(oldname))) - { - DECL_IGNORED_P (TYPE_STUB_DECL (t)) = 0; - debug_hooks->type_decl (TYPE_STUB_DECL (t), LOCAL_CLASS_P (t)); - } - } - /* APPLE LOCAL end 4182972 */ + TYPE_NAME (t) = decl; if (TYPE_LANG_SPECIFIC (type)) TYPE_WAS_ANONYMOUS (type) = 1; |