aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pr65369.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index f986488..67d3125 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2015-05-28 DJ Delorie <dj@redhat.com>
+
+ * gcc.c-torture/execute/pr65369.c: Don't assume int is 32 bits.
+
2015-05-28 Eric Botcazou <ebotcazou@adacore.com>
* 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 339915e..017fe1b 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 <stdint.h>
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);