From: David Carlton <carlton@math.stanford.edu>
To: Daniel Berlin <dberlin@dberlin.org>
Cc: gdb-patches@sources.redhat.com,
Elena Zannoni <ezannoni@redhat.com>, Jim Blandy <jimb@redhat.com>
Subject: Re: [rfc/rfa] accept DW_TAG_namespace and friends, possibly on 5.3
Date: Tue, 22 Oct 2002 14:40:00 -0000 [thread overview]
Message-ID: <ro1k7ka5f10.fsf@jackfruit.Stanford.EDU> (raw)
In-Reply-To: <Pine.LNX.4.44.0210221710400.10022-100000@dberlin.org>
On Tue, 22 Oct 2002 17:17:49 -0400 (EDT), Daniel Berlin
<dberlin@dberlin.org> said:
> On 22 Oct 2002, David Carlton wrote:
>> I've tested this using current GCC, using GCC as patched according
>> to <http://sources.redhat.com/ml/gdb/2002-08/msg00312.html>, and
>> using GCC as patched according to that message plus the following
>> patch:
>> --- dwarf2out.c-danielb Fri Oct 18 11:39:46 2002
>> +++ dwarf2out.c Fri Oct 18 11:38:46 2002
>> @@ -11453,7 +11453,11 @@ gen_namespace_die (decl, context_die)
>> {
>> /* Output a real namespace */
>> dw_die_ref namespace_die = new_die (DW_TAG_namespace, context_die, decl);
>> - add_name_and_src_coords_attributes (namespace_die, decl);
>> + /* Anonymous namespaces shouldn't have a DW_AT_name. */
>> + if (strncmp (dwarf2_name (decl, 0), "_GLOBAL__N", 10) == 0)
>> + add_src_coords_attributes (namespace_die, decl);
>> + else
>> + add_name_and_src_coords_attributes (namespace_die, decl);
>> equate_decl_number_to_die (decl, namespace_die);
>> }
>> else
> Just FYI, the real fix is to move anonymous_namespace_name from
> cp/cp-tree.h to c-common.h, and the actual declaration from
> cp/decl.c to c-common.c , and pointer compare DECL_NAME (decl) to
> anonymous_namespace_name.
Lovely. I was sure you could come up with a better fix than mine;
that strncmp gave me the willies.
>> In all cases, there are no new regressions. Unfortunately, I don't
>> currently have a version of GCC that emits many
>> DW_TAG_imported_declarations or any DW_TAG_imported_modules; I hope
>> that I'll have one soon (Daniel Berlin is working on it but he's
>> busy; maybe I'll try to work on it myself, too),
> I should have it done in a few hours, actually.
Great! My hero. :-)
David Carlton
carlton@math.stanford.edu
next prev parent reply other threads:[~2002-10-22 21:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-22 13:40 David Carlton
2002-10-22 13:51 ` Daniel Jacobowitz
2002-10-22 14:25 ` Andrew Cagney
2002-10-22 14:17 ` Daniel Berlin
2002-10-22 14:40 ` David Carlton [this message]
2002-10-22 15:09 ` Daniel Berlin
2002-10-22 15:33 ` David Carlton
2002-10-22 16:48 ` Daniel Berlin
2002-10-22 15:29 ` Elena Zannoni
2002-10-22 16:02 ` David Carlton
2002-10-22 16:10 ` Elena Zannoni
2002-10-22 16:14 ` David Carlton
2002-10-23 11:36 ` David Carlton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ro1k7ka5f10.fsf@jackfruit.Stanford.EDU \
--to=carlton@math.stanford.edu \
--cc=dberlin@dberlin.org \
--cc=ezannoni@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox