annotate gcc/testsuite/gcc.dg/20050321-1.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 /* This caused an ICE on powerpc-linux-gnu due to not
kono
parents:
diff changeset
2 up-to-date life info (PR middle-end/20177). */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 /* { dg-do compile } */
kono
parents:
diff changeset
5 /* { dg-options "-O2 -fmodulo-sched" } */
kono
parents:
diff changeset
6 extern void * malloc (__SIZE_TYPE__);
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 struct s {
kono
parents:
diff changeset
9 int k;
kono
parents:
diff changeset
10 };
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 int n;
kono
parents:
diff changeset
13 struct s *a1, *(*use)[];
kono
parents:
diff changeset
14 float (*vector)[];
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 void
kono
parents:
diff changeset
17 foo (float *V)
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 int i, used = 0;
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 vector = malloc (i * sizeof (float));
kono
parents:
diff changeset
22 while ((*use)[used] != a1)
kono
parents:
diff changeset
23 used += 1;
kono
parents:
diff changeset
24 for (i = 0; i < n; i++)
kono
parents:
diff changeset
25 *V += (*vector)[i];
kono
parents:
diff changeset
26 }