Article View: comp.sources.bugs
Article #2108Re: GNU egrep Compilation Problem
From: JH Buehler
Date: Fri, 24 Feb 1989 12:21
Date: Fri, 24 Feb 1989 12:21
30 lines
1323 bytes
1323 bytes
In article <1776@dlvax2.datlog.co.uk> gis@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@lancia.ATT.COM
att!lancia!jhpb
Technical Details
Message-ID:
<718@cord.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!wyse!vsi1!apple!rutgers!att!cord!jhpbReferences:
<1776@dlvax2.datlog.co.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!wyse!vsi1!apple!rutgers!att!cord!jhpb From: jhpb@cord.UUCP (JH Buehler) Newsgroups: comp.sources.bugs Subject: Re: GNU egrep Compilation Problem Message-ID: <718@cord.UUCP> Date: 24 Feb 89 12:21:06 GMT References: <1776@dlvax2.datlog.co.uk> Organization: AT&T Bell Laboratories, Liberty Corner Lines: 30 In-reply-to: gis@datlog.UUCP's message of Tue, 21-Feb-89 11:42:16 EST