From a34ef915e1ead530d464a4c27fa3837264542d66 Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Fri, 31 Aug 2007 13:08:55 +0000 Subject: [PATCH] sched-deps.c (update_dep): Mark arguments with ATTRIBUTE_UNUSED. * sched-deps.c (update_dep): Mark arguments with ATTRIBUTE_UNUSED. (sched_analyze_insn): Don't postprocess speculative dependencies when target has no scheduling. * tree-vect-transform.c (vect_estimate_min_profitable_iters): Fix 'uninitialized' warning. From-SVN: r127989 --- gcc/ChangeLog | 8 ++++++++ gcc/sched-deps.c | 6 +++++- gcc/tree-vect-transform.c | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bc077fae8a4..8e54cb943b2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2007-08-31 Maxim Kuvyrkov + + * sched-deps.c (update_dep): Mark arguments with ATTRIBUTE_UNUSED. + (sched_analyze_insn): Don't postprocess speculative dependencies when + target has no scheduling. + * tree-vect-transform.c (vect_estimate_min_profitable_iters): Fix + 'uninitialized' warning. + 2007-08-31 Richard Guenther * tree.c (build_complex_type): Always set TYPE_NAME for diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index c0d9f5588e5..433394956ab 100644 --- a/gcc/sched-deps.c +++ b/gcc/sched-deps.c @@ -943,7 +943,9 @@ change_spec_dep_to_hard (sd_iterator_def sd_it) data-speculative dependence should be updated. */ static enum DEPS_ADJUST_RESULT update_dep (dep_t dep, dep_t new_dep, - sd_iterator_def sd_it, rtx mem1, rtx mem2) + sd_iterator_def sd_it ATTRIBUTE_UNUSED, + rtx mem1 ATTRIBUTE_UNUSED, + rtx mem2 ATTRIBUTE_UNUSED) { enum DEPS_ADJUST_RESULT res = DEP_PRESENT; enum reg_note old_type = DEP_TYPE (dep); @@ -2200,6 +2202,7 @@ sched_analyze_insn (struct deps *deps, rtx x, rtx insn) if (SCHED_GROUP_P (insn)) fixup_sched_groups (insn); +#ifdef INSN_SCHEDULING if ((current_sched_info->flags & DO_SPECULATION) && !sched_insn_is_legitimate_for_speculation_p (insn, 0)) /* INSN has an internal dependency (e.g. r14 = [r14]) and thus cannot @@ -2212,6 +2215,7 @@ sched_analyze_insn (struct deps *deps, rtx x, rtx insn) sd_iterator_cond (&sd_it, &dep);) change_spec_dep_to_hard (sd_it); } +#endif } /* Analyze every insn between HEAD and TAIL inclusive, creating backward diff --git a/gcc/tree-vect-transform.c b/gcc/tree-vect-transform.c index 7c5b1b20b4d..00cc8c34218 100644 --- a/gcc/tree-vect-transform.c +++ b/gcc/tree-vect-transform.c @@ -124,7 +124,7 @@ vect_estimate_min_profitable_iters (loop_vec_info loop_vinfo) basic_block *bbs = LOOP_VINFO_BBS (loop_vinfo); int nbbs = loop->num_nodes; int byte_misalign; - int innerloop_iters, factor; + int innerloop_iters = 0, factor; /* Cost model disabled. */ if (!flag_vect_cost_model)