This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Getting access to anonymous_namespace_name in dwarf2out.c
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 21 Oct 2002 23:41:16 -0400
- Subject: Getting access to anonymous_namespace_name in dwarf2out.c
For some context:
i've been maintaining a patch that was approved eons ago that adds
DW_AT_namespace support to dwarf2out.c, waiting for the GDB guys got
around to adding namespace support. David Carlton is working on it,
and noticed that anonymous namespaces get a DW_AT_name attribute when
they shouldn't get one at all.
So, for proper namespace support in dwarf2, i need access to
anonymous_namespace_name from cp/cp-tree.h (because DECL_NAME(anonymous
namespace NAMEPSPACE_DECL) == anonymous_namespace_name) in order to
identify the anonymous namespaces, so we can omit the DW_AT_name
attribute for them. The alternative is to strncmp against
"_GLOBAL__N", but that seems hackish (and would break if
FILE_FUNCTION_FORMAT changed).
Would people rather this be done with a strncmp, or can i move
anonymous_namespace_name from cp/cp-tree.h to tree.h?
--Dan