[PATCH, PING] DWARF: process all TYPE_DECL nodes when iterating on scopes
Pierre-Marie de Rodat
derodat@adacore.com
Tue Sep 27 14:04:00 GMT 2016
On 09/07/2016 11:30 AM, Richard Biener wrote:
> That said, with the idea of early debug in place and thus giving
> more responsibility to the frontends I wonder in what order the Ada
> FE calls debug_hooks.early_global_decl ()? Maybe it's the middle-end
> and it should arrange for a more natural order on function nests. So
> I'd appreciate if you can investigate this side of the issue a bit,
> that is, simply avoid the bad ordering.
I investigated this track: itâs not the Ada front-endâs calls to the
debug_hooks.early_global_decl that matter, but actually the ones in
cgraphunit.c (symbol_table::finalize_compilation_unit).
The new patch attached tries to fix the call order. Bootstrapping and
regtesting on x86_64-linux were clean except one testcase where the
debug output changed legitimally (matcher updated). Ok to commit? Thank
you in advance!
--
Pierre-Marie de Rodat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-DWARF-fix-scoping-for-descriptions-of-local-types.patch
Type: text/x-diff
Size: 6738 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160927/c165cdce/attachment.bin>
More information about the Gcc-patches
mailing list