From 1caf0482104f4b8a3ea0109ae95dd19cf39c52a2 Mon Sep 17 00:00:00 2001 From: Senthil Kumar Selvaraj Date: Tue, 19 Jul 2016 13:16:32 +0000 Subject: [PATCH] Fix failing test for targets with sizeof(int) != 4. gcc/testsuite/ 2016-07-19 Senthil Kumar Selvaraj * gcc.dg/params/blocksort-part.c: Conditionally define Int32 and UInt32 based on __SIZEOF_INT__. From-SVN: r238471 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/params/blocksort-part.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 457eb1094db..536fbee9ec1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-07-19 Senthil Kumar Selvaraj + + * gcc.dg/params/blocksort-part.c: Conditionally define Int32 + and UInt32 based on __SIZEOF_INT__. + 2016-07-19 Richard Biener 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 0eef2f3f7cc..a9154f2e61c 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; -- 2.30.2