diff options
author | ctice <ctice@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-12 22:38:06 +0000 |
---|---|---|
committer | ctice <ctice@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-12 22:38:06 +0000 |
commit | 85d31d705d4d77cfb1c655aed6556157ee07d66c (patch) | |
tree | 56cdf484a252e0eedc8fc6a0c0c10394585edb68 /gcc/varasm.c | |
parent | 7a22afabca32ad6744d7fd60c53e2f9d74bb9300 (diff) | |
download | gcc-85d31d705d4d77cfb1c655aed6556157ee07d66c.tar.gz |
Temporary fix for partitioning problems; real fix coming soon.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98051 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index b8c982639db..16f6d3b33c7 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1303,7 +1303,8 @@ assemble_start_function (tree decl, const char *fnname) /* Switch to the correct text section for the start of the function. */ function_section (decl); - if (!hot_label_written) + if (flag_reorder_blocks_and_partition + && !hot_label_written) ASM_OUTPUT_LABEL (asm_out_file, hot_section_label); /* Tell assembler to move to target machine's alignment for functions. */ @@ -1377,13 +1378,16 @@ assemble_end_function (tree decl, const char *fnname) } /* Output labels for end of hot/cold text sections (to be used by debug info.) */ - save_text_section = in_section; - unlikely_text_section (); - ASM_OUTPUT_LABEL (asm_out_file, cold_section_end_label); - text_section (); - ASM_OUTPUT_LABEL (asm_out_file, hot_section_end_label); - if (save_text_section == in_unlikely_executed_text) - unlikely_text_section (); + if (flag_reorder_blocks_and_partition) + { + save_text_section = in_section; + unlikely_text_section (); + ASM_OUTPUT_LABEL (asm_out_file, cold_section_end_label); + text_section (); + ASM_OUTPUT_LABEL (asm_out_file, hot_section_end_label); + if (save_text_section == in_unlikely_executed_text) + unlikely_text_section (); + } } /* Assemble code to leave SIZE bytes of zeros. */ |