From ae9fd6b7cd6ab8d777612aa1b721a8c3112e2c5e Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 14 Dec 2010 14:07:05 +0100 Subject: re PR middle-end/46667 (-freorder-blocks-and-partition -g failed and libstdc++ builds for arm-eabi are broken.) PR middle-end/46667 * varasm.c (assemble_start_function): Do not call resolve_unique_section. * cfgexpand.c (gimple_expand_cfg): Resolve it here. From-SVN: r167795 --- gcc/cfgexpand.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/cfgexpand.c') diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 0ab06ea..6cc5d01 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -3951,6 +3951,10 @@ gimple_expand_cfg (void) crtl->preferred_stack_boundary = STACK_BOUNDARY; cfun->cfg->max_jumptable_ents = 0; + /* Resovle the function section. Some targets, like ARM EABI rely on knowledge + of the function section at exapnsion time to predict distance of calls. */ + resolve_unique_section (current_function_decl, 0, flag_function_sections); + /* Expand the variables recorded during gimple lowering. */ timevar_push (TV_VAR_EXPAND); start_sequence (); -- cgit v1.1