annotate gcc/testsuite/gcc.dg/pr36504.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/36504 */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3 /* { dg-options "-O3 -fprefetch-loop-arrays -w" } */
kono
parents:
diff changeset
4 /* { dg-additional-options "-march=i686 -msse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 struct A { struct { int a; } b[8]; };
kono
parents:
diff changeset
7 struct B { int c; int d; };
kono
parents:
diff changeset
8 struct C { struct B d; };
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 void bar (struct C *, int);
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 struct B
kono
parents:
diff changeset
13 foo (struct C *p, struct A *e, int b)
kono
parents:
diff changeset
14 {
kono
parents:
diff changeset
15 struct B q;
kono
parents:
diff changeset
16 bar (p, e->b[b].a);
kono
parents:
diff changeset
17 return q;
kono
parents:
diff changeset
18 }
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 void
kono
parents:
diff changeset
21 baz (int b, struct A *e)
kono
parents:
diff changeset
22 {
kono
parents:
diff changeset
23 struct C p;
kono
parents:
diff changeset
24 for (; b; ++b)
kono
parents:
diff changeset
25 p.d = foo (&p, e, b);
kono
parents:
diff changeset
26 }