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]

[PATCH] Generate a label for the split cold function while using -freorder-blocks-and-partition


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.

        * final.c (final_scan_insn): Generate cold label name by suffixing
        ".cold" to function's assembler name.
        * gcc.dg/tree-prof/cold_partition_label.c: New test.

Comments please.

Thanks
Sri

Attachment: split_code_label_patch.txt
Description: Text document


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