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

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

  Regtested with x86_64 and avr. Committed as obvious.


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


--- 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;
 typedef int             Int32;
 typedef unsigned int    UInt32;
 typedef short           Int16;
 typedef unsigned short  UInt16;