From 6744a6abc335d55f98ba226f4ff169a55cf3fb94 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 29 Nov 2009 11:32:08 +0100 Subject: cgraph.c (same_body_alias_1): Break out of * cgraph.c (same_body_alias_1): Break out of (same_body_alias): ... here; remove comdat check; it is handled in cp already. (cgraph_add_thunk): New. (dump_cgraph_node): Dump aliases and thunks. * cgraph.h (cgraph_thunk_info): New structure. (struct cgraph_node): Add thunk info. (cgraph_add_thunk): New. * cgraphunit.c (cgraph_emit_thunks): Remove. (cgraph_finalize_compilation_unit): Do not call cgraph_emit_thunks. (assemble_thunk): New function. (cgraph_expand_function): Handle thunks. (thunk_adjust): New. (init_lowered_empty_function): New. * optimize.c (maybe_clone_body): Emit thunks associated to alias. * Make-lang.in (method.o): Add dependency on gimple.h. * method.c: Include gimple.h (make_alias_for_thunk): Use same body alias instead of assemble_alias. (use_thunk): Drop codegen; use cgraph_add_thunk; gimplify generic thunks. * semantics.c (expand_or_defer_fn): Emit associated thunks. * cp-objcp-common.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS): Remove. * lto-cgraph.c (lto_output_node): Stream thunk info. (input_node): Likewise. * langhooks.h (lang_hooks_for_callgraph): Remove emit_associated_thunks. * langhooks-def.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS): Remove. (LANG_HOOKS_CALLGRAPH_INITIALIZER): Update. * i386.c (x86_output_mi_thunk): Make output prettier. From-SVN: r154736 --- gcc/ira.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/ira.c') diff --git a/gcc/ira.c b/gcc/ira.c index 7165caa..e5a6171 100644 --- a/gcc/ira.c +++ b/gcc/ira.c @@ -3172,6 +3172,7 @@ ira (FILE *f) ira_assert (current_loops == NULL); flow_loops_find (&ira_loops); + record_loop_exits (); current_loops = &ira_loops; if (internal_flag_ira_verbose > 0 && ira_dump_file != NULL) @@ -3215,6 +3216,7 @@ ira (FILE *f) df_analyze (); flow_loops_find (&ira_loops); + record_loop_exits (); current_loops = &ira_loops; setup_allocno_assignment_flags (); -- cgit v1.1