From 46a16203b2a970ceb21a4f77d9e8bd8142662301 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Thu, 28 May 2015 17:35:58 -0400 Subject: [PATCH] * gcc.c-torture/execute/pr65369.c: Don't assume int is 32 bits. From-SVN: r223851 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.c-torture/execute/pr65369.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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); -- 2.30.2