annotate gcc/testsuite/gcc.c-torture/compile/pr79411.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR tree-optimization/79411 */
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 typedef struct __jmp_buf_tag { char buf[1024]; } jmp_buf[1];
kono
parents:
diff changeset
4 extern int setjmp (jmp_buf);
kono
parents:
diff changeset
5 extern int bar (unsigned int *);
kono
parents:
diff changeset
6 extern jmp_buf *baz (void);
kono
parents:
diff changeset
7 struct C { int c1; unsigned int c2, c3, c4; };
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 void
kono
parents:
diff changeset
10 foo (struct C *x, const int *y, unsigned int *z, unsigned int e, unsigned int g)
kono
parents:
diff changeset
11 {
kono
parents:
diff changeset
12 unsigned int d = 0;
kono
parents:
diff changeset
13 unsigned long f;
kono
parents:
diff changeset
14 setjmp (*baz ());
kono
parents:
diff changeset
15 f = 1 + d;
kono
parents:
diff changeset
16 if ((x->c1 || x->c2) && g && (!e || d >= 8))
kono
parents:
diff changeset
17 d = 16;
kono
parents:
diff changeset
18 else
kono
parents:
diff changeset
19 d = 8;
kono
parents:
diff changeset
20 if ((!x->c3 && !x->c4 || *y == 0) && !e && bar (z))
kono
parents:
diff changeset
21 *z = 1 + f;
kono
parents:
diff changeset
22 }