summaryrefslogtreecommitdiff
path: root/gcc/cp/mangle.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-08 20:29:15 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-08 20:29:15 +0000
commitc2e831643d8dc86d51a13566f930b73b680a7931 (patch)
treef26daf46f4eda155a0360bde32fbd2e8f0259682 /gcc/cp/mangle.c
parentea2e2c1ad3a2de50e05cd2ec2c5ff19a1ee2527a (diff)
downloadgcc-c2e831643d8dc86d51a13566f930b73b680a7931.tar.gz
Give the anonymous namespace a null DECL_NAME.
* cp-tree.h: Don't declare anonymous_namespace_name. * decl.c: Don't define it. * dump.c (cp_dump_tree): Don't check for it. * cxx-pretty-print.c (pp_cxx_original_namespace_definition): Likewise. * error.c (dump_decl): Likewise. * name-lookup.c: Define it here. (push_namespace): Put it in DECL_ASSEMBLER_NAME instead. * mangle.c (write_unqualified_name): Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74433 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/mangle.c')
-rw-r--r--gcc/cp/mangle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c
index 15334f321e3..94c885cacc4 100644
--- a/gcc/cp/mangle.c
+++ b/gcc/cp/mangle.c
@@ -991,6 +991,8 @@ write_unqualified_name (const tree decl)
write_special_name_constructor (decl);
else if (DECL_LANG_SPECIFIC (decl) != NULL && DECL_DESTRUCTOR_P (decl))
write_special_name_destructor (decl);
+ else if (DECL_NAME (decl) == NULL_TREE)
+ write_source_name (DECL_ASSEMBLER_NAME (decl));
else if (DECL_CONV_FN_P (decl))
{
/* Conversion operator. Handle it right here.