Debian Codegraph @

gcc/testsuite/gcc.dg/lto/pr103171_1.c

raw
1 int rglobal = 0;
2
3 volatile int g;
4 volatile int c;
5 volatile double *array;
6
7 /* unused parameter */
8 static void
9 bar(int *p)
10 {
11 int i;
12 for (i = 0; i < c; i++)
13 {
14 /* something big so that it is inlined second. */
15 array[i] = (array[i+1]+array[i]+1)*2;
16 }
17 }
18
19 void foo(int *p) {
20 g = *p;
21 bar(p);
22 }
23
24 void __attribute__((noinline))
25 entry(void)
26 {
27 foo(&rglobal);
28 }
29
30 void __attribute__((used))
31 blah(int *p)
32 {
33 bar(p);
34 }
35