summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2011-05-03 13:08:36 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2011-05-03 13:08:36 +0000
commit2c7eebae8a0b49351452b3a98fc1b2f26608bfbc (patch)
tree2d807f2a3c1c4b7e1108c8950f4b2d7408be0561 /gcc/function.c
parent17038fcf969aacff3fa4ebdbb9bfedda6705f612 (diff)
downloadgcc-2c7eebae8a0b49351452b3a98fc1b2f26608bfbc.tar.gz
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
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 973e5a1d34e..ab1ca9ecf52 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -4515,6 +4515,7 @@ init_function_start (tree subr)
else
allocate_struct_function (subr, false);
prepare_function_start ();
+ decide_function_section (subr);
/* Warn if this value is an aggregate type,
regardless of which calling convention we are using for it. */