Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 1999 18:10:46 +0300
From:      Vadim Chekan <vadim@gc.lviv.ua>
Cc:        stable@FreeBSD.ORG
Subject:   Re: Bison update request
Message-ID:  <37A06EF6.97853AF9@gc.lviv.ua>
References:  <199907291137.HAA24115@blackhelicopters.org>

next in thread | previous in thread | raw e-mail | index | archive | help


Dispatcher wrote:
> 
> Vadim,
> 
> Bison was used to support gcc, which is the compiler used in 3.x.  The
> version of gcc 3.2 uses is also old, so we need a matching bison.
> 
> -current uses egcs.  We can easily use yacc with it, with only a few changes.
> 
> The motivation is:
> 
> Yacc has a BSD license, while Bison has a GNU license.
> 
> ==ml

Ok. This is a Big Politic. May be yacc is better, but this doesn't mean
that "bad" bison  in FreeBSD distribution can contain bug.
Try this (I suppose bison-1.25):

bison test.y && cc -c test.tab.c

===> Start test.y
%{
#define YYPARSE_PARAM param
%}
%token T_STRING
%%
input:
                | input T_STRING
;
%%
===> End test.y

Can you compile this?

Here's the patch:
--- bison.simple.old    Thu Jul 29 17:49:44 1999
+++ bison.simple.new    Thu Jul 29 17:50:11 1999
@@ -150,8 +150,12 @@

 /* Prevent warning if -Wstrict-prototypes.  */
 #ifdef __GNUC__
+#ifdef YYPARSE_PARAM
+int yyparse (void *);
+#else
 int yyparse (void);
 #endif
+#endif
 ^L
 #if __GNUC__ > 1               /* GNU C and GNU C++ define this.  */
 #define __yy_memcpy(TO,FROM,COUNT)     __builtin_memcpy(TO,FROM,COUNT)

Shuld I applay bug-report, or this mail is enought?

Vadim Chekan.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37A06EF6.97853AF9>