aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim@codesourcery.com>2007-08-31 13:08:55 +0000
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>2007-08-31 13:08:55 +0000
commita34ef915e1ead530d464a4c27fa3837264542d66 (patch)
tree9a0a071d3b4fa85532c73c52cc997ffc118e50df
parent194ee011d891bf921471b8dedd9eadae325c339f (diff)
downloadgcc-a34ef915e1ead530d464a4c27fa3837264542d66.zip
gcc-a34ef915e1ead530d464a4c27fa3837264542d66.tar.gz
gcc-a34ef915e1ead530d464a4c27fa3837264542d66.tar.bz2
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
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/sched-deps.c6
-rw-r--r--gcc/tree-vect-transform.c2
3 files changed, 14 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bc077fa..8e54cb9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2007-08-31 Maxim Kuvyrkov <maxim@codesourcery.com>
+
+ * 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 <rguenther@suse.de>
* tree.c (build_complex_type): Always set TYPE_NAME for
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c
index c0d9f55..4333949 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 7c5b1b2..00cc8c3 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)