]> git.ipfire.org Git - thirdparty/gcc.git/blame - 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
CommitLineData
2b8ac1df
AH
1// { dg-do compile }
2// { dg-options "-O2" }
3
4extern int k[];
5int m;
6int* j();
7void 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}