diff options
author | Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> | 2016-07-19 13:16:32 +0000 |
---|---|---|
committer | Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org> | 2016-07-19 13:16:32 +0000 |
commit | 1caf0482104f4b8a3ea0109ae95dd19cf39c52a2 (patch) | |
tree | 447ce8bf57dacd8feeda099e826d79bbc4cc1b39 | |
parent | 00f06cd7331fa1264d8e93173c0663dea5373442 (diff) | |
download | gcc-1caf0482104f4b8a3ea0109ae95dd19cf39c52a2.zip gcc-1caf0482104f4b8a3ea0109ae95dd19cf39c52a2.tar.gz gcc-1caf0482104f4b8a3ea0109ae95dd19cf39c52a2.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/params/blocksort-part.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 457eb10..536fbee 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.dg/params/blocksort-part.c b/gcc/testsuite/gcc.dg/params/blocksort-part.c index 0eef2f3..a9154f2 100644 --- a/gcc/testsuite/gcc.dg/params/blocksort-part.c +++ b/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; |