public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Aldy Hernandez <aldyh@redhat.com>
To: Jason Merrill <jason@redhat.com>,
	       Richard Biener <richard.guenther@gmail.com>
Cc: gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [debug-early] C++ clones and limbo DIEs
Date: Fri, 16 Jan 2015 18:09:00 -0000	[thread overview]
Message-ID: <54B95198.6080506@redhat.com> (raw)
In-Reply-To: <54B93CF5.9080107@redhat.com>

On 01/16/2015 08:31 AM, Jason Merrill wrote:
> On 01/16/2015 05:55 AM, Richard Biener wrote:
>> I'd hope that in the very distant future all early DIEs would be
>> "created"
>> by the frontends (that is, dwarf2out.c wouldn't walk into
>> parents/siblings
>> so much).
>
> Are you thinking that the front end would immediately call a debug hook
> for every block, local variable and such, or just for higher level
> entities?

In the very distant future, as in, when Aldy is retired and living in a 
tropical island somewhere? :).

>
>> I hoped we wouldn't need the limbo list at all ... that is, parent DIEs
>> are always present when we create children.  I think that should
>> work in principle if the frontends would create DIEs while parsing.
>
> So create the function DIE as soon as we see the declaration?  That
> seems reasonable.  Then that would be the point of early debug, not
> later at EOF.

I'm certainly game to exploring this option, though I think we should be 
able to get this working at EOF.  The reason why I didn't take this 
approach originally is because it seemed like a lot more hassle, 
especially since we have to do the same thing for all other front-ends.

>
>> Note that dwarf2out forces parent DIE creation in some cases
>> but not in some others - it would be interesting to sort out which
>> parent DIEs it thinks it cannot create when we create the DIE
>> for a sibling.  Maybe it's just poor ordering of early_global_decl
>> calls?
>
> Agreed.

Regrettably, I have to agree as well.  I can investigate why some DIEs 
end up orphaned and report back.

Thanks.
Aldy

  reply	other threads:[~2015-01-16 17:59 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-16  3:11 Aldy Hernandez
2015-01-16  4:30 ` Jason Merrill
2015-01-16 11:03   ` Richard Biener
2015-01-16 16:38     ` Jason Merrill
2015-01-16 18:09       ` Aldy Hernandez [this message]
2015-01-16 18:51       ` Richard Biener
2015-01-28 19:44     ` Aldy Hernandez
2015-01-16 17:54   ` Aldy Hernandez
2015-01-16 21:38     ` Jason Merrill
2015-01-23 19:53       ` Aldy Hernandez
2015-01-26  9:21         ` Richard Biener
2015-01-27 22:33         ` Jason Merrill
2015-01-28 19:24           ` Aldy Hernandez
2015-01-28 19:32             ` Aldy Hernandez
2015-01-28 19:47               ` Jason Merrill
2015-01-30 22:15                 ` Aldy Hernandez
2015-01-30 22:23                   ` Jason Merrill
2015-01-31  7:28                     ` Aldy Hernandez
2015-02-01  6:27                       ` Jason Merrill
2015-02-01  8:43                         ` Richard Biener
2015-02-02  3:15                         ` Aldy Hernandez
2015-02-02  4:16                           ` Jason Merrill
2015-02-05  0:27                             ` Aldy Hernandez
2015-02-05 20:11                               ` Jason Merrill
2015-02-06  1:15                                 ` Aldy Hernandez
2015-02-06 14:02                                   ` Jason Merrill
2015-02-06 16:42                                     ` Aldy Hernandez
2015-02-06 17:40                                       ` Jason Merrill
2015-02-06 17:47                                         ` Aldy Hernandez
2015-02-10 10:52                                       ` Richard Biener
2015-02-10 17:58                                         ` Jason Merrill
2015-02-12 18:04                                         ` Aldy Hernandez
2015-02-12 19:27                                           ` Jason Merrill
2015-02-16 20:46                                             ` Aldy Hernandez
2015-02-01  8:42                     ` Richard Biener
2015-02-02  1:48                       ` Jason Merrill

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=54B95198.6080506@redhat.com \
    --to=aldyh@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jason@redhat.com \
    --cc=richard.guenther@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).