aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-prefetch.c
diff options
context:
space:
mode:
authorPat Haugen <pthaugen@us.ibm.com>2010-05-14 15:48:51 +0000
committerPat Haugen <pthaugen@gcc.gnu.org>2010-05-14 15:48:51 +0000
commite972cc7e9a2fd59a6eb3375674c6c35fae4dcaf2 (patch)
tree377ffd24ee66c4828dfa6ce324d4096b2f11cf17 /gcc/tree-ssa-loop-prefetch.c
parent6a08009670479dd2fe973a2717720b49f712ad03 (diff)
downloadgcc-e972cc7e9a2fd59a6eb3375674c6c35fae4dcaf2.zip
gcc-e972cc7e9a2fd59a6eb3375674c6c35fae4dcaf2.tar.gz
gcc-e972cc7e9a2fd59a6eb3375674c6c35fae4dcaf2.tar.bz2
tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs() result to unsigned.
* tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs() result to unsigned. From-SVN: r159397
Diffstat (limited to 'gcc/tree-ssa-loop-prefetch.c')
-rw-r--r--gcc/tree-ssa-loop-prefetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-prefetch.c b/gcc/tree-ssa-loop-prefetch.c
index daf9956..f828ed3 100644
--- a/gcc/tree-ssa-loop-prefetch.c
+++ b/gcc/tree-ssa-loop-prefetch.c
@@ -717,7 +717,7 @@ prune_ref_by_group_reuse (struct mem_ref *ref, struct mem_ref *by,
prefetch_before = (hit_from - delta_r + step - 1) / step;
/* Do not reduce prefetch_before if we meet beyond cache size. */
- if (prefetch_before > abs (L2_CACHE_SIZE_BYTES / step))
+ if (prefetch_before > (unsigned) abs (L2_CACHE_SIZE_BYTES / step))
prefetch_before = PREFETCH_ALL;
if (prefetch_before < ref->prefetch_before)
ref->prefetch_before = prefetch_before;