* 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 e851acdd47f003ac9dc94e3f71460b19f237b3a0..ddf94bc9cea8b5433eee7280962e5ccc2b1483f8 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 6c87522f31d508d5f095a98a944441b8cf323d5f..8db137ec5b7d08fef0da5524e7b4d00b25612c82 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);
 }