| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-additional-options "-mcpu=power8" { target powerpc*-*-* } } */ |
| 3 |
/* { dg-additional-options "-w" { target avr-*-* } } */ |
| 4 |
|
| 5 |
long f; |
| 6 |
void a(); |
| 7 |
void *g() |
| 8 |
{ |
| 9 |
char h[] = {}, j[] = {}, k[] = {}, l[] = {}, m[] = {}, n[] = {}, o[] = {}, |
| 10 |
q[] = {}, r[] = {}; |
| 11 |
static const char i[] = {6, 0}; |
| 12 |
const char *nops[] = {h, i, j, k, l, m, n, o, q, r}; |
| 13 |
long s = 2; |
| 14 |
void *fill = a; |
| 15 |
char *p = fill; |
| 16 |
while (f) { |
| 17 |
void *b = p; |
| 18 |
const void *c = nops[1]; |
| 19 |
long d = s, e = __builtin_object_size(b, 0); |
| 20 |
__builtin___memcpy_chk(b, c, d, e); |
| 21 |
p += s; |
| 22 |
f -= s; |
| 23 |
} |
| 24 |
return fill; |
| 25 |
} |