Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / pr42631.c
blobf5ac5a53a107db8653d56045b589064aa1d0e071
1 /* The function below expands to a loop whose latch block starts with
2 a PHI node and the corresponding debug stmt. In RTL, there are no
3 PHI nodes, but the debug insn that references the incoming k
4 remains, even though one of the incoming edges has it
5 uninitialized. After unrolling, however, the debug insn becomes
6 unconditional, and this exposed a problem in the webizer. Because
7 DF doesn't combine the uses of an uninitialized pseudo into a
8 single UD chain, we created a separate web for each use.
9 Allocating separate registers or stack slots for each uninitialized
10 use is wasteful, but the problem became more apparent in
11 -fcompare-debug tests: register numbers went out of sync, and could
12 have caused codegen differences depending on whether or not the
13 debug insns were present. The fix was to arrange for web to
14 combine uninitialized uses into a single web. */
16 /* { dg-do compile } */
17 /* { dg-options "-g -O1 -funroll-loops -fcompare-debug" } */
19 void foo()
21 unsigned k;
22 while (--k > 0);