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.selva...@atmel.com>

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


--- 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;
 
-- 
2.7.4


Reply via email to