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

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

index e851acd..ddf94bc 100644 (file)
@@ -1,3 +1,7 @@
+2019-10-07  Jakub Jelinek  <jakub@redhat.com>
+
+       * gcc.target/i386/pr71801.c (uuidcache_init): Fix up size of d array.
+
 2019-10-07  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * g++.dg/diagnostic/not-a-function-template-1.C: New.
index 6c87522..8db137e 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[1];
+  char d[16];
   get_label_uuid(d);
   uuidcache_addentry(d);
 }