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
This commit is contained in:
Pat Haugen 2010-05-14 15:48:51 +00:00 committed by Pat Haugen
parent 6a08009670
commit e972cc7e9a
2 changed files with 6 additions and 1 deletions

View 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.

View 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;