This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
hot/cold vs glibc
- From: Daniel Jacobowitz <drow at false dot org>
- To: Caroline Tice <ctice at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 18 Apr 2005 11:35:34 -0400
- Subject: hot/cold vs glibc
Hi Caroline,
You've made this change to assemble_start_function (unidiff format):
+ last_text_section = no_section;
+ in_section = no_section;
resolve_unique_section (decl, 0, flag_function_sections);
+
+ /* Switch to the correct text section for the start of the function. */
+
function_section (decl);
+ if (flag_reorder_blocks_and_partition
+ && !hot_label_written)
+ ASM_OUTPUT_LABEL (asm_out_file, hot_section_label);
Why did you need to reset in_section? This causes an extra .text to be
emitted before every function. It also breaks the (ugly, non-unit-at-a-time
compatible, but otherwise working) mechanism that glibc uses to generate
crti.o and crtn.o, so I can no longer build a mips64-linux toolchain using
HEAD.
--
Daniel Jacobowitz
CodeSourcery, LLC