Commit b6050cb7 by Richard Guenther Committed by Richard Biener

re PR lto/43946 (SPEC2000 GCC fails to build with -fprofile-generate -O2…

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
parent ccb253b3
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.
2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
* toplev.c: Include varray.h for statistics dumping.
......
......@@ -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;
......
2010-04-30 Richard Guenther <rguenther@suse.de>
PR lto/43946
* gcc.dg/lto/20100430-1_0.c: New testcase.
2010-04-30 Jakub Jelinek <jakub@redhat.com>
PR debug/43942
......
/* { dg-lto-do link } */
/* { dg-lto-options {{-O2 -fprofile-arcs -flto -r -nostdlib}} } */
void
expand_stmt_with_iterators_1 (void)
{
extern void expand_expr_stmt (void);
expand_expr_stmt ();
}
void
iterator_expand (void)
{
expand_stmt_with_iterators_1 ();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment