GNU egrep Compilation Problem

JH Buehler jhpb at cord.UUCP
Fri Feb 24 22:21:06 AEST 1989


In article <1776 at dlvax2.datlog.co.uk> gis at datlog.UUCP writes:

   I have just attempted to compile the GNU version of egrep that appeared on
   comp.sources.unix.  Compiling dfa.c generates the porblem below:

	   cc -O -DUSG -c dfa.c
	   "dfa.c", line 1133: compiler error: usable asked about nontemp register
	   *** Error code 1

It's a SYS V compiler bug.  Modify the code slightly as shown below.
Perhaps the GNU folks would like to change this also.
----------------
  /* Get the epsilon closure of the firstpos of the regexp.  The result will
     be the set of positions of state 0. */
  merged.nelem = 0;
#ifdef BUG_FIX
{
  int *p = nfirstpos -1;
  for (i = 0; i < *p; ++i)
    insert(firstpos[i], &merged);
}
#else
  for (i = 0; i < nfirstpos[-1]; ++i)
    insert(firstpos[i], &merged);
#endif
  epsclosure(&merged, r);
-- 
Joe Buehler
jhpb at lancia.ATT.COM
att!lancia!jhpb



More information about the Comp.sources.bugs mailing list