Fix gcc.dg/tree-ssa/pr59597.c failure for avr
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Tue, 11 Oct 2016 10:35:57 +0000 (10:35 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Tue, 11 Oct 2016 10:35:57 +0000 (10:35 +0000)
commitddefad9a0845cdd0d648f3c234b1abfaa239612b
tree52938ea4db9f91b4f70b45fbf994feaebac0f4a8
parent656b031126ee1679e97b03484cd870d68dd387a9
Fix gcc.dg/tree-ssa/pr59597.c failure for avr

Declare loop index variable j as a 32 bit int instead of assuming ints
are 32 bits. The smaller int size on the avr makes prior passes optimize
away the loop exit check (j < 10000000), as the constant is outside
the range of a 16 bit int.

gcc/testsuite/ChangeLog

2016-10-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

* gcc.dg/tree-ssa/pr59597.c: Typedef  __INT32_TYPE__ to i32.
(main): Declare j as i32 instead of int.

From-SVN: r240986
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr59597.c