Fix failing test for targets with sizeof(int) != 4.

gcc/testsuite/

2016-07-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

	* gcc.dg/params/blocksort-part.c: Conditionally define Int32 
	and UInt32 based on __SIZEOF_INT__.

From-SVN: r238471
This commit is contained in:
Senthil Kumar Selvaraj 2016-07-19 13:16:32 +00:00 committed by Senthil Kumar Selvaraj
parent 00f06cd733
commit 1caf048210
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2016-07-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
* gcc.dg/params/blocksort-part.c: Conditionally define Int32
and UInt32 based on __SIZEOF_INT__.
2016-07-19 Richard Biener <rguenther@suse.de>
PR tree-optimization/71901

View File

@ -21,8 +21,13 @@
typedef char Char;
typedef unsigned char Bool;
typedef unsigned char UChar;
#if __SIZEOF_INT__ == 2
typedef long Int32;
typedef unsigned long UInt32;
#else
typedef int Int32;
typedef unsigned int UInt32;
#endif
typedef short Int16;
typedef unsigned short UInt16;