function.c (init_function_start): Call decide_function_section.
authorBernd Schmidt <bernds@codesourcery.com>
Tue, 3 May 2011 13:08:36 +0000 (13:08 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Tue, 3 May 2011 13:08:36 +0000 (13:08 +0000)
commit2c7eebae8a0b49351452b3a98fc1b2f26608bfbc
tree2d807f2a3c1c4b7e1108c8950f4b2d7408be0561
parent17038fcf969aacff3fa4ebdbb9bfedda6705f612
function.c (init_function_start): Call decide_function_section.

* function.c (init_function_start): Call decide_function_section.
* varasm.c (decide_function_section): New function.
(assemble_start_function): When not using
flag_reorder_blocks_and_partition, don't compute in_cold_section_p
or first_function_block_is_cold.
* rtl.h (decide_function_section): Declare.

* gcc.target/arm/cold-lc.c: New test.

From-SVN: r173303
gcc/ChangeLog
gcc/function.c
gcc/rtl.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/cold-lc.c [new file with mode: 0644]
gcc/varasm.c