OSDN Git Service

* tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
[pf3gnuchains/gcc-fork.git] / gcc / tree-ssa-loop-prefetch.c
index daf9956..f828ed3 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;