From b6050cb77f23aaeedb3f4e223dbebe33143ff774 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 30 Apr 2010 13:23:25 +0000 Subject: re PR lto/43946 (SPEC2000 GCC fails to build with -fprofile-generate -O2 -ffast-math -flto -fwhole-program) 2010-04-30 Richard Guenther PR lto/43946 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data first after all lowering passes. * gcc.dg/lto/20100430-1_0.c: New testcase. From-SVN: r158935 --- gcc/passes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/passes.c') diff --git a/gcc/passes.c b/gcc/passes.c index 7a5d16f8a24..f482437e79d 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -748,6 +748,7 @@ init_optimization_passes (void) /* Interprocedural optimization passes. */ p = &all_small_ipa_passes; + NEXT_PASS (pass_ipa_free_lang_data); NEXT_PASS (pass_ipa_function_and_variable_visibility); NEXT_PASS (pass_ipa_early_inline); { @@ -756,7 +757,6 @@ init_optimization_passes (void) NEXT_PASS (pass_inline_parameters); NEXT_PASS (pass_rebuild_cgraph_edges); } - NEXT_PASS (pass_ipa_free_lang_data); NEXT_PASS (pass_early_local_passes); { struct opt_pass **p = &pass_early_local_passes.pass.sub; -- cgit v1.2.1