]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc.target/i386/pr71801.c (uuidcache_init): Fix up size of d array.
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Oct 2019 15:44:55 +0000 (15:44 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Oct 2019 15:44:55 +0000 (15:44 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276663 138bc75d-0d04-0410-961f-82ee72b054a4

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);
 }