summaryrefslogtreecommitdiff
path: root/gcc/passes.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-04-30 13:23:25 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-04-30 13:23:25 +0000
commitb6050cb77f23aaeedb3f4e223dbebe33143ff774 (patch)
treebe3483c93bb03a35ae38aa67b8535394a43e2974 /gcc/passes.c
parentccb253b36cc1bef88d135159a10d35395644ac51 (diff)
downloadgcc-b6050cb77f23aaeedb3f4e223dbebe33143ff774.tar.gz
re PR lto/43946 (SPEC2000 GCC fails to build with -fprofile-generate -O2 -ffast-math -flto -fwhole-program)
2010-04-30 Richard Guenther <rguenther@suse.de> 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
Diffstat (limited to 'gcc/passes.c')
-rw-r--r--gcc/passes.c2
1 files changed, 1 insertions, 1 deletions
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;