* gcc.target/i386/pr71801.c (uuidcache_init): Fix up size of d array.
authorJakub Jelinek <jakub@gcc.gnu.org>
Mon, 7 Oct 2019 15:49:52 +0000 (17:49 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 7 Oct 2019 15:49:52 +0000 (17:49 +0200)
From-SVN: r276664

gcc/testsuite/gcc.target/i386/pr71801.c

index 8db137ec5b7d08fef0da5524e7b4d00b25612c82..4f1cb190233930a958ff3452a966554fe5a97507 100644 (file)
@@ -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);
 }