Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr117426-1.c

raw
1 /* { dg-do run } */
2
3 /* PR middle-end/117426 */
4
5
6 /* o and q stack variables should not be allocated at the same parition.
7 At -O3 with unrolling, the stack conflicts code was missing both variables
8 were alive at the same time. */
9 __attribute__((noipa)) void func1() {}
10 int a[6];
11 int b, d, i, j, l, m, n;
12 char *c;
13 int f[8][8][4];
14 int *g = &d;
15 char p[11];
16 int main() {
17 short q[6];
18 int k = 0;
19 for (; k < 2; k++) {
20 {
21 char o[3];
22 int e = 53;
23 char *h = o;
24 c = p;
25 while (e)
26 *c++ = e /= 10;
27 while (c != p)
28 *h++ = *--c;
29 *h++ = '\0';
30 n = h - o;
31 }
32 q[n - 2] = 1;
33 }
34 *g = q[1];
35 if (d != 1)
36 __builtin_abort ();
37 l = 0;
38 for (; l < 10; l++)
39 if (m)
40 func1();
41 i = 0;
42 for (; i < 7; i++) {
43 j = 0;
44 for (; j < 7; j++)
45 b = a[b];
46 }
47 j = 0;
48 for (; j < 8; j++) {
49 l = 0;
50 for (; l < 4; l++)
51 b = a[b ^ f[i][j][l]];
52 }
53 }