From 0b06099d407225a28f12ed600ae561aa8317dfc9 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 7 Oct 2019 17:49:52 +0200 Subject: [PATCH] * gcc.target/i386/pr71801.c (uuidcache_init): Fix up size of d array. From-SVN: r276664 --- gcc/testsuite/gcc.target/i386/pr71801.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/i386/pr71801.c b/gcc/testsuite/gcc.target/i386/pr71801.c index 8db137ec5b7..4f1cb190233 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[16]; + char d[sizeof(a) + sizeof(c)]; get_label_uuid(d); uuidcache_addentry(d); } -- 2.30.2