From: Jakub Jelinek Date: Mon, 7 Oct 2019 15:44:55 +0000 (+0200) Subject: * gcc.target/i386/pr71801.c (uuidcache_init): Fix up size of d array. X-Git-Tag: upstream/12.2.0~21343 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=240334e0847ea4185539e3dfef1ab8709bc04d88;p=platform%2Fupstream%2Fgcc.git * gcc.target/i386/pr71801.c (uuidcache_init): Fix up size of d array. From-SVN: r276663 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e851acd..ddf94bc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-10-07 Jakub Jelinek + + * gcc.target/i386/pr71801.c (uuidcache_init): Fix up size of d array. + 2019-10-07 Paolo Carlini * g++.dg/diagnostic/not-a-function-template-1.C: New. diff --git a/gcc/testsuite/gcc.target/i386/pr71801.c b/gcc/testsuite/gcc.target/i386/pr71801.c index 6c87522..8db137e 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[1]; + char d[16]; get_label_uuid(d); uuidcache_addentry(d); }