Fix PR49471: canonicalize_loop_ivs should not generate unsigned types.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jul 2011 16:53:09 +0000 (16:53 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jul 2011 16:53:09 +0000 (16:53 +0000)
commit38a664976f4416537b96beac9f9840f49c8724e0
treee1b8b759d9b426b961abafcc38d68c6a098bae4d
parentc71f56cea05324f042650d0459b47dca70458469
Fix PR49471: canonicalize_loop_ivs should not generate unsigned types.

2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>

PR tree-optimization/49471
* tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
iv only when the largest type is unsigned.  Do not call
lang_hooks.types.type_for_size.

* testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
* testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176838 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-ssa-loop-manip.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.graphite/force-parallel-1.c
libgomp/testsuite/libgomp.graphite/force-parallel-2.c