| 1 |
/* PR 113148: ICE caused by infinite reloading */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-O2 -march=la464 -mfpu=64 -mabi=lp64d" } */ |
| 4 |
|
| 5 |
struct bound |
| 6 |
{ |
| 7 |
double max; |
| 8 |
} drawQuadrant_bound; |
| 9 |
double w4, innerXfromXY_y, computeBound_right_0; |
| 10 |
struct arc_def |
| 11 |
{ |
| 12 |
double w, h; |
| 13 |
double a0, a1; |
| 14 |
}; |
| 15 |
static void drawQuadrant (struct arc_def *); |
| 16 |
static void |
| 17 |
computeBound (struct arc_def *def, struct bound *bound) |
| 18 |
{ |
| 19 |
double ellipsex_1, ellipsex_0; |
| 20 |
bound->max = def->a1 ?: __builtin_sin (w4) * def->h; |
| 21 |
if (def->a0 == 5 && def->w == def->h) |
| 22 |
; |
| 23 |
else |
| 24 |
ellipsex_0 = def->a0 == 0.0 ?: __builtin_cos (w4); |
| 25 |
if (def->a1 == 5 && def->w == def->h) |
| 26 |
ellipsex_1 = bound->max; |
| 27 |
__builtin_sqrt (ellipsex_1 * innerXfromXY_y * innerXfromXY_y * w4); |
| 28 |
computeBound_right_0 = ellipsex_0; |
| 29 |
} |
| 30 |
void |
| 31 |
drawArc () |
| 32 |
{ |
| 33 |
struct arc_def foo; |
| 34 |
for (;;) |
| 35 |
drawQuadrant (&foo); |
| 36 |
} |
| 37 |
void |
| 38 |
drawQuadrant (struct arc_def *def) |
| 39 |
{ |
| 40 |
int y, miny; |
| 41 |
computeBound (def, &drawQuadrant_bound); |
| 42 |
while (y >= miny) |
| 43 |
; |
| 44 |
} |