From 240334e0847ea4185539e3dfef1ab8709bc04d88 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 7 Oct 2019 17:44:55 +0200 Subject: [PATCH] * gcc.target/i386/pr71801.c (uuidcache_init): Fix up size of d array. From-SVN: r276663 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/i386/pr71801.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e851acdd47f..ddf94bc9cea 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-10-07 Jakub Jelinek + + * gcc.target/i386/pr71801.c (uuidcache_init): Fix up size of d array. + 2019-10-07 Paolo Carlini * g++.dg/diagnostic/not-a-function-template-1.C: New. diff --git a/gcc/testsuite/gcc.target/i386/pr71801.c b/gcc/testsuite/gcc.target/i386/pr71801.c index 6c87522f31d..8db137ec5b7 100644 --- a/gcc/testsuite/gcc.target/i386/pr71801.c +++ b/gcc/testsuite/gcc.target/i386/pr71801.c @@ -16,7 +16,7 @@ static int get_label_uuid(char *p1) { } void uuidcache_addentry(char *p1) { __builtin_memcpy(&c, p1, sizeof(c)); } void uuidcache_init() { - char d[1]; + char d[16]; get_label_uuid(d); uuidcache_addentry(d); } -- 2.30.2