Fix failing test for targets with sizeof(int) != 4.
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Tue, 19 Jul 2016 13:16:32 +0000 (13:16 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Tue, 19 Jul 2016 13:16:32 +0000 (13:16 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/params/blocksort-part.c

index 457eb1094db007960567998071de74cb3a627a45..536fbee9ec166dcd440101d3371ddecbe18c24b1 100644 (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
index 0eef2f3f7ccd2390c376268bb490b8fba62cef75..a9154f2e61ccd21b60153f20be3891b988f9ef2c 100644 (file)
 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;