This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]