From owner-freebsd-stable Thu Jul 29 8:16:34 1999 Delivered-To: freebsd-stable@freebsd.org Received: from extra.gc.lviv.ua (extra.gc.lviv.ua [195.5.56.19]) by hub.freebsd.org (Postfix) with ESMTP id 3941114C8F for ; Thu, 29 Jul 1999 08:16:14 -0700 (PDT) (envelope-from vadim@gc.lviv.ua) Received: from gate.gc.lviv.ua (gate.gc.lviv.ua [192.168.168.18]) by extra.gc.lviv.ua (8.9.3/8.9.3) with ESMTP id SAA80337 for ; Thu, 29 Jul 1999 18:15:28 +0300 (EEST) Received: from gc.lviv.ua (intra.lviv.gc.com.ua [192.168.1.93]) by gate.gc.lviv.ua (8.9.3/8.9.3) with ESMTP id SAA98591 for ; Thu, 29 Jul 1999 18:13:53 +0300 (EEST) Message-ID: <37A06EF6.97853AF9@gc.lviv.ua> Date: Thu, 29 Jul 1999 18:10:46 +0300 From: Vadim Chekan Organization: Galitsky Kontrakty X-Mailer: Mozilla 4.6 [en] (WinNT; I) X-Accept-Language: uk,ru,en MIME-Version: 1.0 Cc: stable@FreeBSD.ORG Subject: Re: Bison update request References: <199907291137.HAA24115@blackhelicopters.org> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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