diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2011-08-02 20:26:57 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2011-08-02 20:26:57 +0000 |
commit | 9f8139900d3b6be84b303ad505cf5899e95d8ea2 (patch) | |
tree | e10fd0869574a56b51a64d75685d2375a74ead7b /gcc/tree-ssa-loop-prefetch.c | |
parent | f315a6b438a961737d5a0def08b4957866b348c7 (diff) | |
download | gcc-9f8139900d3b6be84b303ad505cf5899e95d8ea2.zip gcc-9f8139900d3b6be84b303ad505cf5899e95d8ea2.tar.gz gcc-9f8139900d3b6be84b303ad505cf5899e95d8ea2.tar.bz2 |
re PR bootstrap/49914 (call to abs(long long) in gcc/fold-const.c)
2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
PR bootstrap/49914
* fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
of abs.
* tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
* tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
From-SVN: r177212
Diffstat (limited to 'gcc/tree-ssa-loop-prefetch.c')
-rw-r--r-- | gcc/tree-ssa-loop-prefetch.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-ssa-loop-prefetch.c b/gcc/tree-ssa-loop-prefetch.c index 88f95ef..82634cc 100644 --- a/gcc/tree-ssa-loop-prefetch.c +++ b/gcc/tree-ssa-loop-prefetch.c @@ -1,5 +1,6 @@ /* Array prefetching. - Copyright (C) 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2005, 2007, 2008, 2009, 2010, 2011 + Free Software Foundation, Inc. This file is part of GCC. @@ -794,7 +795,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 > (unsigned) abs (L2_CACHE_SIZE_BYTES / step)) + if (prefetch_before > (unsigned) abs_hwi (L2_CACHE_SIZE_BYTES / step)) prefetch_before = PREFETCH_ALL; if (prefetch_before < ref->prefetch_before) ref->prefetch_before = prefetch_before; |