Merge from trunk
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr52714.c
blob03d49908912b2b72dfa92a2ced56ace38825ea7a
2 int __re_compile_fastmap(unsigned char *p)
4 unsigned char **stack;
5 unsigned size;
6 unsigned avail;
8 stack = __builtin_alloca(5 * sizeof(unsigned char*));
9 if (stack == 0)
10 return -2;
11 size = 5;
12 avail = 0;
14 for (;;) {
15 switch (*p++) {
16 case 0:
17 if (avail == size)
18 return -2;
19 stack[avail++] = p;
23 return 0;