From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7395 invoked by alias); 22 Oct 2002 03:41:17 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 7384 invoked from network); 22 Oct 2002 03:41:16 -0000 Received: from unknown (HELO mail.cdt.org) (206.112.85.61) by sources.redhat.com with SMTP; 22 Oct 2002 03:41:16 -0000 Received: from dberlin.org (pool-138-88-159-232.esr.east.verizon.net [138.88.159.232]) by mail.cdt.org (Postfix) with ESMTP id DAC50490097 for ; Mon, 21 Oct 2002 23:16:01 -0400 (EDT) Received: from [192.168.0.91] (account dberlin HELO dberlin.org) by dberlin.org (CommuniGate Pro SMTP 4.0) with ESMTP id 1061063 for gcc@gcc.gnu.org; Mon, 21 Oct 2002 23:41:15 -0400 Date: Tue, 22 Oct 2002 03:11:00 -0000 Mime-Version: 1.0 (Apple Message framework v548) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: Getting access to anonymous_namespace_name in dwarf2out.c From: Daniel Berlin To: gcc@gcc.gnu.org Content-Transfer-Encoding: 7bit Message-Id: <1ECAE6C0-E570-11D6-B837-000393575BCC@dberlin.org> X-SW-Source: 2002-10/txt/msg01311.txt.bz2 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