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

function name in labels


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. Any idea
where I can find the name of the current function? I tried
current_function_name() but that does not work when compiling C++.


Jan

_________________________________________________________________
MSN Search, for accurate results! http://search.msn.nl


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