diff mbox

[testsuite,committed] Fix gcc.dg/params/blocksort-part.c for non 32-bit int targets

Message ID 87r3apdaly.fsf@atmel.com
State New
Headers show

Commit Message

Senthil Kumar Selvaraj July 19, 2016, 1:24 p.m. UTC
Hi,

  The below patch conditionally defines Int32 and UInt32 to accomodate
  targets with sizeof(int) != 4.

  Regtested with x86_64 and avr. Committed as obvious.

Regards
Senthil

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__.
diff mbox

Patch

--- gcc/testsuite/gcc.dg/params/blocksort-part.c
+++ gcc/testsuite/gcc.dg/params/blocksort-part.c
@@ -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;