aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-10-20 23:46:55 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2003-10-20 21:46:55 +0000
commitd4d1ebc191e5c1d00266d9c0207c5dde69f5e216 (patch)
treee0577f027de65a595f0d08d2ce877c7af9b5a347 /gcc/toplev.c
parentce01559bb70b9d2af4bb3e91866167440c5a66f8 (diff)
downloadgcc-d4d1ebc191e5c1d00266d9c0207c5dde69f5e216.zip
gcc-d4d1ebc191e5c1d00266d9c0207c5dde69f5e216.tar.gz
gcc-d4d1ebc191e5c1d00266d9c0207c5dde69f5e216.tar.bz2
toplev.c (rest_of_compilation): Fix webizer pass ordering.
* toplev.c (rest_of_compilation): Fix webizer pass ordering. * cgraphunit.c (decide_is_function_needed): Fix test dealing with functions implicitly made inline. * cgraphunit.c (cgraph_decide_inlining_incrementally): New function. (cgraph_finalize_function): Use it. (cgraph_mark_inline): Allow incrmental decisions * invoke.texi (max-inline-slope, min-inline-insns): Kill. * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill. * tree-inline.c (limits_allow_inlining): Kill. (expand_call_inline): Always use unit-at-a-time path. * decl.c (start_cleanup_fn): Set DECL_DECLARED_INLINE_P to deffer the expansion. * testsuite/g++.dg/opt/inline4.C: Do not use min-inline-insns parameter. * testsuite/gcc.dg/inline-2.c: Likewise. From-SVN: r72721
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 151f6c6..a393c52 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -3364,9 +3364,6 @@ rest_of_compilation (tree decl)
rest_of_handle_cfg (decl, insns);
- if (flag_web)
- rest_of_handle_web (decl, insns);
-
if (optimize > 0
|| profile_arc_flag || flag_test_coverage || flag_branch_probabilities)
{
@@ -3394,6 +3391,9 @@ rest_of_compilation (tree decl)
|| flag_unroll_loops))
rest_of_handle_loop2 (decl, insns);
+ if (flag_web)
+ rest_of_handle_web (decl, insns);
+
if (flag_rerun_cse_after_loop)
rest_of_handle_cse2 (decl, insns);