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

Re: [google][4.7] Generate a label for the split cold function while using -freorder-blocks-and-partition


Fixed a bug in the previous patch sent, where  I did not check if the
switch section was actually to the cold function part.  Updated patch
attached.

Thanks
Sri



On Fri, Apr 19, 2013 at 1:58 PM, Sriraman Tallam <tmsriram@google.com> wrote:
> Updated patch attached.
>
> Thanks
> Sri
>
> On Fri, Apr 19, 2013 at 1:43 PM, Sriraman Tallam <tmsriram@google.com> wrote:
>> Hi,
>>
>>   This patch generates labels for cold function parts that are split when
>> using the option -freorder-blocks-and-partition.  The cold label name
>> is generated by suffixing ".cold" to the assembler name of the hot
>> function.
>>
>>   This is useful when getting back traces from gdb when the cold function
>> part does get executed.
>>
>> I will port this patch to trunk, please let me know what you think.
>>
>> Thanks
>> Sri

Attachment: patch_cold_function_label.txt
Description: Text document


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