Fix PR49471: canonicalize_loop_ivs should not generate unsigned types.
authorSebastian Pop <sebastian.pop@amd.com>
Wed, 27 Jul 2011 16:53:09 +0000 (16:53 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Wed, 27 Jul 2011 16:53:09 +0000 (16:53 +0000)
commit3689198db0121443b06f1bbe4e1c34286acb3f32
treee1b8b759d9b426b961abafcc38d68c6a098bae4d
parent27165eddf6cd08f66d24bfd7751675cfb84c6a6c
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.

From-SVN: r176838
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