Commit 0b06099d by Jakub Jelinek

* gcc.target/i386/pr71801.c (uuidcache_init): Fix up size of d array.

From-SVN: r276664
parent 240334e0
...@@ -16,7 +16,7 @@ static int get_label_uuid(char *p1) { ...@@ -16,7 +16,7 @@ static int get_label_uuid(char *p1) {
} }
void uuidcache_addentry(char *p1) { __builtin_memcpy(&c, p1, sizeof(c)); } void uuidcache_addentry(char *p1) { __builtin_memcpy(&c, p1, sizeof(c)); }
void uuidcache_init() { void uuidcache_init() {
char d[16]; char d[sizeof(a) + sizeof(c)];
get_label_uuid(d); get_label_uuid(d);
uuidcache_addentry(d); uuidcache_addentry(d);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment