This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] better dwarf2 debug info for inlined functions
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: James E Wilson <wilson at specifix dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 06 Jul 2005 23:47:18 -0400
- Subject: Re: [patch] better dwarf2 debug info for inlined functions
- References: <1120706830.11505.157.camel@aretha.corp.specifix.com>
> I'll wait a day or two in case someone wants to comment, then I will
> check it in.
Since you only set block_source_location on top level blocks ("This is
only set in the top level block, which corresponds to the inlined
function scope."), it might make more sense to use a hashtable or
something to store this data on the side for just those blocks rather
than put a location in *every single block*.
We can of course, always change this later if we decide to use this
information on every single block in some manner.
After having to rewrite the decl structures, i've become much less of a
fan of adding things directly to structures when it's only used on some
small percent of them.
Right now, on a 32 bit machine without mapped_location, location_t is 8
bytes, and all of struct tree_block is only 28 bytes itself (44 bytes if
you include the common part). So adding 8 bytes to every one is a bit
expensive for something only used on a small percent of them.