FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 930621-1.c
blob4199bbe0870c6bd4cee40da35fbd222737f2c962
1 #if defined(STACK_SIZE) && (STACK_SIZE < 65536)
2 # define BYTEMEM_SIZE 10000L
3 #endif
5 #ifndef BYTEMEM_SIZE
6 # define BYTEMEM_SIZE 45000L
7 #endif
9 int bytestart[5000 + 1];
10 unsigned char modtext[400 + 1];
11 unsigned char bytemem[2][BYTEMEM_SIZE + 1];
13 long
14 modlookup (int l)
16 signed char c;
17 long j;
18 long k;
19 signed char w;
20 long p;
21 while (p != 0)
23 while ((k < bytestart[p + 2]) && (j <= l) && (modtext[j] == bytemem[w][k]))
25 k = k + 1;
26 j = j + 1;
28 if (k == bytestart[p + 2])
29 if (j > l)
30 c = 1;
31 else c = 4;
32 else if (j > l)
33 c = 3;
34 else if (modtext[j] < bytemem[w][k])
35 c = 0;
36 else c = 2;