This is the mail archive of the gcc-patches@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]

Re: [debug-early] New branch for streaming dwarf early (and status)


On 08/25/2014 11:53 PM, Aldy Hernandez wrote:
My current predicament is that dwarf2out_early_decl() is called early
enough such that dwarf2out_decl() sets the context die to the entire
compilation unit.  Which means, that local variables end up with global
scope.  I was thinking of hacking gen_variable_die() such that the
second time around through gen_variable_die(), we fix the parent_die to
point to the correct place, but I haven't thought too much about it.
Perhaps dwarf2out_early_decl() should set things up correctly??  I'm
open to suggestions.

We already have a similar situation with nested functions and such; see limbo_die_list.

Jason


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