ok espie@ who saw intermittent sigbus in ports/math/hc with this.
-/* $OpenBSD: lalr.c,v 1.13 2014/01/09 23:07:50 millert Exp $ */
+/* $OpenBSD: lalr.c,v 1.14 2014/01/10 11:19:31 sthen Exp $ */
/* $NetBSD: lalr.c,v 1.4 1996/03/19 03:21:33 jtc Exp $ */
/*
unsigned *fp3;
int j;
short *rp;
+
+ int height;
unsigned *base;
VERTICES[++top] = i;
- INDEX[i] = top;
+ INDEX[i] = height = top;
base = F + i * tokensetsize;
fp3 = base + tokensetsize;
}
}
- if (INDEX[i] == top)
+ if (INDEX[i] == height)
{
for (;;)
{