Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-04 Thread Akim Demaille
Le 4 nov. 08 à 22:39, Sergei Steshenko a écrit : BISON_NO_ADDED_SEMICOLON=1 bison ... Actually, adding a command line option is better generally speaking. This is because command line option affects only the tool in question ('bison' in this case) while environment variables can coll

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-04 Thread Joel E. Denny
On Tue, 4 Nov 2008, Akim Demaille wrote: > > I thought about the possibility of a warning too. It seems like > > /[};]\s*$/ is the right pattern, but I have this feeling I'm forgetting > > some special case that will annoy users with correct grammars. Actually, > > there could be trailing commen

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-04 Thread Sergei Steshenko
--- On Tue, 11/4/08, Akim Demaille <[EMAIL PROTECTED]> wrote: > From: Akim Demaille <[EMAIL PROTECTED]> > Subject: Re: bison-2.4 breaks gcc-4.3.2 build > To: "Akim Demaille" <[EMAIL PROTECTED]> > Cc: "Joel E. Denny" <[EMAIL PROTECTE

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-04 Thread Joel E. Denny
On Tue, 4 Nov 2008, Akim Demaille wrote: > I added the following. > > ** Temporary hack for adding a semicolon to the user action. Thanks. > Looking at the code, I think the simplest solution would be to provide a means > not to issue the ';'. It then suffices that one person tries to build wi

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-04 Thread Akim Demaille
Le 4 nov. 08 à 22:09, Akim Demaille a écrit : Yes, sorry, I did not realize that was ambiguous. I'm doing it now. I added the following. ** Temporary hack for adding a semicolon to the user action. Bison used to prepend a trailing semicolon at the end of the user action for reductions

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-04 Thread Akim Demaille
Le 4 nov. 08 à 22:02, Joel E. Denny a écrit : On Tue, 4 Nov 2008, Akim Demaille wrote: Alternatively, we could just formally deprecate it in NEWS now and then drop support as soon as it gets in the way of other languages. NEWS should warn about this now. I didn't find it... except for -

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-04 Thread Joel E. Denny
On Tue, 4 Nov 2008, Akim Demaille wrote: > > Alternatively, we could just formally deprecate it in NEWS now and then > > drop support as soon as it gets in the way of other languages. > > NEWS should warn about this now. I didn't find it... except for --yacc. Maybe I missed it. Or are you agr

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-04 Thread Akim Demaille
Le 4 nov. 08 à 21:21, Joel E. Denny a écrit : On Tue, 4 Nov 2008, Akim Demaille wrote: Anyway, I pushed the following to branch-2.4.1 to fix it. I'll push to master soon. The problem with this fix is that it is very "C/C++/Java" based. That is why is was obsoleted and I believed that

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-04 Thread Joel E. Denny
On Tue, 4 Nov 2008, Akim Demaille wrote: > > Anyway, I pushed the following to branch-2.4.1 to fix it. I'll push to > > master soon. > > The problem with this fix is that it is very "C/C++/Java" based. That is why > is was obsoleted and I believed that Paul had agreed to get rid of it. I'm > o

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-04 Thread Akim Demaille
Le 4 nov. 08 à 20:47, Joel E. Denny a écrit : On Mon, 3 Nov 2008, Sergei Steshenko wrote: And bison-2.3a does _not_ break the build, i.e. the 'treelang' broken by bison-2.4, bison-2.3b is not broken by bison-2.3a, but the Either you did something wrong or something else strange is happening

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-04 Thread Joel E. Denny
On Mon, 3 Nov 2008, Sergei Steshenko wrote: > > And bison-2.3a does _not_ break the build, i.e. the > > 'treelang' broken by > > bison-2.4, bison-2.3b is not broken by bison-2.3a, but the Either you did something wrong or something else strange is happening. 2.3a has the same bug as 2.3b and 2.

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-03 Thread Sergei Steshenko
--- On Mon, 11/3/08, Sergei Steshenko <[EMAIL PROTECTED]> wrote: > From: Sergei Steshenko <[EMAIL PROTECTED]> > Subject: Re: bison-2.4 breaks gcc-4.3.2 build > To: "Joel E. Denny" <[EMAIL PROTECTED]> > Cc: bug-bison@gnu.org > Date: Monday, Novem

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-03 Thread Sergei Steshenko
--- On Mon, 11/3/08, Sergei Steshenko <[EMAIL PROTECTED]> wrote: > From: Sergei Steshenko <[EMAIL PROTECTED]> > Subject: Re: bison-2.4 breaks gcc-4.3.2 build > To: "Joel E. Denny" <[EMAIL PROTECTED]> > Cc: bug-bison@gnu.org > Date: Monday, November

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-03 Thread Sergei Steshenko
--- On Mon, 11/3/08, Sergei Steshenko <[EMAIL PROTECTED]> wrote: > From: Sergei Steshenko <[EMAIL PROTECTED]> > Subject: Re: bison-2.4 breaks gcc-4.3.2 build > To: "Joel E. Denny" <[EMAIL PROTECTED]> > Cc: bug-bison@gnu.org > Date: Monday, November 3,

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-03 Thread Sergei Steshenko
--- On Mon, 11/3/08, Joel E. Denny <[EMAIL PROTECTED]> wrote: > From: Joel E. Denny <[EMAIL PROTECTED]> > Subject: Re: bison-2.4 breaks gcc-4.3.2 build > To: "Sergei Steshenko" <[EMAIL PROTECTED]> > Cc: bug-bison@gnu.org > Date: Monday, November 3,

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-03 Thread Joel E. Denny
On Mon, 3 Nov 2008, Sergei Steshenko wrote: > The offending piece of it: > > 686 expressions_with_commas_opt: > 687 /* Nil. */ { > 688 $$ = 0 > 689 } > 690 |expressions_with_commas { $$ = $1 } > 691 ; Oh, I see. Bison is not fixing users' semantic actions anymore. If I

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-03 Thread Sergei Steshenko
--- On Mon, 11/3/08, Joel E. Denny <[EMAIL PROTECTED]> wrote: > From: Joel E. Denny <[EMAIL PROTECTED]> > Subject: Re: bison-2.4 breaks gcc-4.3.2 build > To: "Sergei Steshenko" <[EMAIL PROTECTED]> > Cc: bug-bison@gnu.org > Date: Monday, November 3,

Re: bison-2.4 breaks gcc-4.3.2 build

2008-11-03 Thread Joel E. Denny
On Mon, 3 Nov 2008, Sergei Steshenko wrote: > I've been routinely building various gcc version with bison-2.3 with no > problems. Thanks for doing that. It would be helpful if you would do the same for Bison test releases, such as 2.3a and 2.3b, before formal releases come out. > bison-2.4 b

bison-2.4 breaks gcc-4.3.2 build

2008-11-03 Thread Sergei Steshenko
Hello, I've been routinely building various gcc version with bison-2.3 with no problems. bison-2.4 breaks the build, the error messages are: " /home/sergei/AFSWD/build/gcc-4.3.2/./prev-gcc/xgcc -B/home/sergei/AFSWD/build/gcc-4.3.2/./prev-gcc/ -B/home/sergei/AFSWD/install/gcc-4.3.2/i686-pc-lin