This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: AIX bootstrap failure (was Re: Hot/cold partitioning fixes)
On Fri, Apr 01, 2005 at 12:00:08PM -0800, Caroline Tice wrote:
> I really need labels with predictable names, as these labels are used in
> the debugging information to determine the size of the text sections.
And you can't somehow associate the labels with the function? For
instance, record them in "struct function", or as a property of the
FUNCTION_DECL. It looks like current_function isn't usable during
dwarf2 output, but you'll have the decl; you could create a hash table
mapping the FUNCTION_DECL to the appropriate label.
[There are a couple references to cfun in dwarf2out.c, which would be
easier, but I'm not sure if they're correct.]
--
Daniel Jacobowitz
CodeSourcery, LLC