From: DJ Delorie Date: Thu, 28 May 2015 21:35:58 +0000 (-0400) Subject: * gcc.c-torture/execute/pr65369.c: Don't assume int is 32 bits. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=46a16203b2a970ceb21a4f77d9e8bd8142662301;p=gcc.git * gcc.c-torture/execute/pr65369.c: Don't assume int is 32 bits. From-SVN: r223851 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f9864884d4f..67d3125752d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-05-28 DJ Delorie + + * gcc.c-torture/execute/pr65369.c: Don't assume int is 32 bits. + 2015-05-28 Eric Botcazou * gnat.dg/discr43.adb: New test. diff --git a/gcc/testsuite/gcc.c-torture/execute/pr65369.c b/gcc/testsuite/gcc.c-torture/execute/pr65369.c index 339915e9521..017fe1b01ce 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr65369.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr65369.c @@ -1,4 +1,5 @@ /* PR tree-optimization/65369 */ +#include static const char data[] = "12345678901234567890123456789012345678901234567890" @@ -14,7 +15,7 @@ static void foo (const unsigned int *buf) __attribute__ ((noinline)) static void bar (const unsigned char *block) { - unsigned int buf[16]; + uint32_t buf[16]; __builtin_memcpy (buf + 0, block + 0, 4); __builtin_memcpy (buf + 1, block + 4, 4); __builtin_memcpy (buf + 2, block + 8, 4);