summaryrefslogtreecommitdiff
path: root/gcc/passes.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-07-31 13:10:52 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-07-31 13:10:52 +0000
commit777d46780c3e30ecc800f0a613d65562caea9abf (patch)
treeeffc283a6f03409b0c3e0e3e20c70c5ab627776d /gcc/passes.c
parent4c65aab8b90fdd8ef4e2b77e33c7a821297f60e6 (diff)
downloadgcc-777d46780c3e30ecc800f0a613d65562caea9abf.tar.gz
2008-07-31 Basile Starynkevitch <basile@starynkevitch.net>
the yesterday's version failed to compile any simple C file. Fixed! MELT branch merged with trunk r138355 * gcc/passes.c: better order for basilys related passes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@138403 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/passes.c')
-rw-r--r--gcc/passes.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/gcc/passes.c b/gcc/passes.c
index bd4a7ce0926..675d83b55eb 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -524,7 +524,9 @@ init_optimization_passes (void)
NEXT_PASS (pass_warn_function_return);
NEXT_PASS (pass_build_cgraph_edges);
NEXT_PASS (pass_inline_parameters);
+#if ENABLE_BASILYSMELT
NEXT_PASS (pass_basilys_lowering);
+#endif
*p = NULL;
/* Interprocedural optimization passes. */
@@ -548,10 +550,10 @@ init_optimization_passes (void)
NEXT_PASS (pass_referenced_vars);
NEXT_PASS (pass_reset_cc_flags);
NEXT_PASS (pass_build_ssa);
+ NEXT_PASS (pass_early_warn_uninitialized);
NEXT_PASS (pass_all_early_optimizations);
{
struct opt_pass **p = &pass_all_early_optimizations.pass.sub;
- NEXT_PASS (pass_early_warn_uninitialized);
NEXT_PASS (pass_rebuild_cgraph_edges);
NEXT_PASS (pass_early_inline);
NEXT_PASS (pass_cleanup_cfg);
@@ -576,7 +578,7 @@ init_optimization_passes (void)
NEXT_PASS (pass_simple_dse);
NEXT_PASS (pass_tail_recursion);
NEXT_PASS (pass_convert_switch);
-#if ENABLE_BASILYSMELT
+#if ENABLE_BASILYSMELT
NEXT_PASS (pass_basilys_earlyopt);
#endif /*ENABLE_BASILYSMELT*/
NEXT_PASS (pass_profile);
@@ -593,7 +595,7 @@ init_optimization_passes (void)
NEXT_PASS (pass_ipa_type_escape);
NEXT_PASS (pass_ipa_pta);
NEXT_PASS (pass_ipa_struct_reorg);
-#if ENABLE_BASILYSMELT
+#if ENABLE_BASILYSMELT
NEXT_PASS (pass_basilys_ipa);
#endif /*ENABLE_BASILYSMELT*/
*p = NULL;
@@ -715,24 +717,19 @@ init_optimization_passes (void)
NEXT_PASS (pass_tail_calls);
NEXT_PASS (pass_rename_ssa_copies);
NEXT_PASS (pass_uncprop);
-#if ENABLE_BASILYSMELT
+#if ENABLE_BASILYSMELT
NEXT_PASS (pass_basilys_lateopt);
#endif /*ENABLE_BASILYSMELT*/
- NEXT_PASS (pass_del_ssa);
- NEXT_PASS (pass_nrv);
- NEXT_PASS (pass_mark_used_blocks);
- NEXT_PASS (pass_cleanup_cfg_post_optimizing);
}
-
-#if ENABLE_COMPILER_PROBE
- NEXT_PASS(pass_compiler_probe);
-#endif
-
NEXT_PASS (pass_del_ssa);
NEXT_PASS (pass_nrv);
NEXT_PASS (pass_mark_used_blocks);
NEXT_PASS (pass_cleanup_cfg_post_optimizing);
+#if ENABLE_COMPILER_PROBE
+ NEXT_PASS(pass_compiler_probe);
+#endif
+
NEXT_PASS (pass_warn_function_noreturn);
NEXT_PASS (pass_free_datastructures);
NEXT_PASS (pass_mudflap_2);