Fix bootstrap error

Richard Guenther richard.guenther@gmail.com
Fri May 14 11:17:00 GMT 2010


On Thu, May 13, 2010 at 11:10 PM, Pat Haugen <pthaugen@us.ibm.com> wrote:
>
> Hit the following on PPC, when tree-ssa-loop-prefetch.c is compiled at -O1
> (-O0 I would assume too).
>
> /home/pthaugen/src/gcc/trunk/gcc/gcc/tree-ssa-loop-prefetch.c: In function
> #prune_ref_by_group_reuse#:
> /home/pthaugen/src/gcc/trunk/gcc/gcc/tree-ssa-loop-prefetch.c:720:27:
> warning: comparison between signed and unsigned integer expressions
> [-Wsign-compare]
>
> Is the following correct and qualify as an obvious fix?  It fixes the
> bootstrap issue.

Ok.

Thanks,
Richard.

>
>
> 2010-05-13  Pat Haugen  <pthaugen@us.ibm.com>
>
>        * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
> result to
>        unsigned to prevent bootstrap error for signed and unsigned compare.
>
> (See attached file: boot.diff)



More information about the Gcc-patches mailing list