| 1 |
/* { dg-require-effective-target untyped_assembly } */ |
| 2 |
/* { dg-additional-options "-std=gnu89" } */ |
| 3 |
|
| 4 |
struct r |
| 5 |
{ |
| 6 |
int d1, d2; |
| 7 |
}; |
| 8 |
|
| 9 |
struct km |
| 10 |
{ |
| 11 |
int d; |
| 12 |
}; |
| 13 |
|
| 14 |
struct f1 |
| 15 |
{ |
| 16 |
char *fn; |
| 17 |
char *fd; |
| 18 |
char *fs; |
| 19 |
char *ic; |
| 20 |
void (*ff) (); |
| 21 |
}; |
| 22 |
|
| 23 |
int g (); |
| 24 |
|
| 25 |
int y; |
| 26 |
struct r *bs; |
| 27 |
int bv; |
| 28 |
|
| 29 |
void b (); |
| 30 |
char *w (); |
| 31 |
|
| 32 |
struct km **q; |
| 33 |
char **mns; |
| 34 |
int nm; |
| 35 |
struct f1 **z; |
| 36 |
|
| 37 |
f (char *km, char *h) |
| 38 |
{ |
| 39 |
struct f1 *t; |
| 40 |
int map = midn(km, strlen(km)); |
| 41 |
int V; |
| 42 |
int c; |
| 43 |
struct r r; |
| 44 |
struct f1 *cm; |
| 45 |
|
| 46 |
if (!g(&V, &cm, h, strlen(h))) |
| 47 |
{ |
| 48 |
c = (cm - z[V]); |
| 49 |
goto L; |
| 50 |
} |
| 51 |
|
| 52 |
for (c = 0; c < nm; c++) |
| 53 |
if (!strcmp (h, mns[c])) |
| 54 |
{ |
| 55 |
V = -1; |
| 56 |
goto L; |
| 57 |
} |
| 58 |
|
| 59 |
for (c = 0; c < y; c++) |
| 60 |
{ |
| 61 |
if (!memcmp (&bs[c], &r, 8)) |
| 62 |
goto L; |
| 63 |
} |
| 64 |
|
| 65 |
h = w (&r); |
| 66 |
if (!bv) |
| 67 |
{ |
| 68 |
bs = g (8); |
| 69 |
t = (struct f1 *)g (20); |
| 70 |
} |
| 71 |
else |
| 72 |
{ |
| 73 |
bs = g (bs, y * 8); |
| 74 |
z[bv] = cr (z[bv], (1 + y) * 20); |
| 75 |
t = &z[bv][y - 1]; |
| 76 |
} |
| 77 |
bs[y - 1] = r; |
| 78 |
t->fs[0] = sp (y - 1); |
| 79 |
t->fs[1] = 0; |
| 80 |
t->ic = 0; |
| 81 |
t->fd = 0; |
| 82 |
t->fn = cs (h); |
| 83 |
t->ff = b; |
| 84 |
L: |
| 85 |
g (q[map], V, c); |
| 86 |
} |