Fix bogus pr64277.c failure for avr
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Fri, 25 Nov 2016 08:15:42 +0000 (08:15 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Fri, 25 Nov 2016 08:15:42 +0000 (08:15 +0000)
commit4ae35e698893dcf2b11ab6fa7b39a9f5e0973cd8
treeb6c0e028218f8b10fe10b8a57fb487796b0ef6eb
parent2131e489c9f181e3d445e8e5412407ad32a8875c
Fix bogus pr64277.c failure for avr

The smaller int size for the avr target breaks the test's
expectation on the number of iterations. The failure goes
away if 32 bit ints are used in place of a plain int.

Fix by conditionally typedef int32_t to __INT32_TYPE__ for targets
with int size < 4,  and then use int32_t everywhere.

gcc/testsuite
016-11-25  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

* gcc.dg/pr64277.c: Use __INT32_TYPE__ for targets
with sizeof(int) < 4.

From-SVN: r242859
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr64277.c