]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
authorpthaugen <pthaugen@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 May 2010 15:48:51 +0000 (15:48 +0000)
committerpthaugen <pthaugen@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 May 2010 15:48:51 +0000 (15:48 +0000)
result to unsigned.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159397 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssa-loop-prefetch.c

index 1b727ad87dad71b4395bad1078fbe4c9e074cb77..3d84fe834f4e238d779e421cbf7eca2564a00f7e 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
+
+       * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
+       result to unsigned.
+
 2010-05-14  Tristan Gingold  <gingold@adacore.com>
 
        * toplev.c (default_debug_hooks): Remove this variable.
index daf9956d3bc3da9eb47f4d31988108c9dc6e675c..f828ed3f1a1d06c84a2d2855bdd8b36ceb1857a5 100644 (file)
@@ -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;