This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: function name in labels
- From: Per Bothner <per at bothner dot com>
- To: Jan Hoogerbrugge <hoogerbrugge at hotmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 22 Jan 2004 14:06:08 -0800
- Subject: Re: function name in labels
- References: <BAY9-F1153DMoijoSZl00044df8@hotmail.com>
Jan Hoogerbrugge wrote:
Hi,
I want to prefix labels in the assembly output with the current function
name. So
in function foo(), I would like to have labels such as foo_L1 and
foo_L12. This
makes it possible for me to recognize code in the output of profiles.
Another benefit: this might make it easier for the compile server
to generate identical assembler files when compiling multiple
output files compared to multiple non-server compilations.
An altenative would be to reset the label-counter, but that causes
with inlining. It is possible tree-based inling might reduce the
problem, but "function-relative" label names avoids the problem.
--
--Per Bothner
per@bothner.com http://per.bothner.com/