]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/pr109639.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr109639.c
1 // { dg-do compile }
2 // { dg-options "-O2" }
3
4 extern int k[];
5 int m;
6 int* j();
7 void f(int *howto) {
8 short __trans_tmp_1;
9 long offset = howto - k;
10 __trans_tmp_1 = offset;
11 for (;;) {
12 if (howto == 0)
13 return;
14 if (__trans_tmp_1) {
15 howto = j();
16 m = *howto;
17 }
18 f(howto);
19 }
20 }