Fix gimplification of ordering comparisons of arrays of bytes
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr90972.c
blobb18ccbd540e87cbb50189c0922d82a5c530fc3fb
1 /* { dg-do compile } */
2 /* { dg-additional-options "-mcpu=power8" { target powerpc*-*-* } } */
3 /* { dg-additional-options "-w" { target avr-*-* } } */
5 long f;
6 void a();
7 void *g()
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;
24 return fill;