This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix bootstrap error


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.



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)

Attachment: boot.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]