I want to play around with the GLR support in the recent bison, so I simply fixed the skeleton. On Tue, 31 Aug 2004 07:31:25 -0700 Reid Spencer <reid at x10sys.com> wrote:> On Mon, 2004-08-30 at 21:46, Jeff Cohen wrote:> > I'm using bison 1.875. But it worked the last time, so I don't know why > > it doesn't work now. Deleting the __attribute__ clause fixes it. > > This has come up before. Its a bison bug. You'll need to try an older > version. I use 1.35 and all works fine. > > LLVM Bug: http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=302 > Bison Bug: > http://mail.gnu.org/archive/html/bug-bison/2004-01/msg00011.html > > Reid. >
On Tue, 2004-08-31 at 19:52, Jeff Cohen wrote:> I want to play around with the GLR support in the recent bison, so I > simply fixed the skeleton.What do you mean by "fixed the skeleton"? Hacked the output of bison so that it compiled? I suppose what we ought to do is have a bison post-processor that scans the bison output for this problem and corrects it. Could you do that? Reid. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040901/a4a6f444/attachment.sig>
More like I hacked bison itself. The skeleton used by bison to generate the parser is a separate file from the binary itself. On my machine the skeleton is /usr/local/share/bison/yacc.c. On Wed, 01 Sep 2004 13:51:48 -0700 Reid Spencer <reid at x10sys.com> wrote:> On Tue, 2004-08-31 at 19:52, Jeff Cohen wrote: > > I want to play around with the GLR support in the recent bison, so I > > simply fixed the skeleton. > > What do you mean by "fixed the skeleton"? Hacked the output of bison so > that it compiled? > > I suppose what we ought to do is have a bison post-processor that scans > the bison output for this problem and corrects it. Could you do that? > > Reid. > > >