public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Raja R Harinath <harinath@cs.umn.edu>
To: Gabriel Dos Reis <gdr@integrable-solutions.net>
Cc: Paolo Carlini <pcarlini@unitus.it>,
	gcc-bugs@gcc.gnu.org, gcc@gcc.gnu.org
Subject: Re: GCC-3.2.2 bootstrap FAILURE: 1 reduce/reduce conflict in objc-parse.y
Date: Tue, 28 Jan 2003 00:03:00 -0000	[thread overview]
Message-ID: <d97kcqs0c5.fsf@bose.cs.umn.edu> (raw)
In-Reply-To: <m34r7uz1wp.fsf@uniton.integrable-solutions.net> (Gabriel Dos Reis's message of "27 Jan 2003 23:03:02 +0100")

Hi,

Gabriel Dos Reis <gdr@integrable-solutions.net> writes:

> Paolo Carlini <pcarlini@unitus.it> writes:
>
> | Gabriel Dos Reis wrote:
> | 
> | >Could anyone bootstrap with Bison 1.875?
> | >
> | Just tried for you, Gaby: definitely Bison 1.875 is not ok for Objc!
>
> Thanks!
>
> I don't know whether this is a bug in objc-parse.y or a bug in Bison
> 1.875. I'll make a release note unless someone comes with a fix.

See 

  objc/9267: bison 1.875 doesn't like reduce/reduce errors with %expect N

It is a bug in 'objc-parse.y' (a misuse of %expect).  There has
been a reduce/reduce conflict in that file for quite some time.  The
comment even says so (c-parse.in):

  ifobjc
  %expect 32 /* shift/reduce conflicts, and 1 reduce/reduce conflict.  */
  end ifobjc

However, %expect, among other things, means "exactly 0 reduce/reduce
conflicts".

Older versions of bison correctly warned about finding reduce/reduce
conflicts -- thus defeating the only purpose of the %expect: avoid
warnings.

Bison 1.875 escalated the warning to an error.  The CVS version of
bison has de-escalated this back to a warning.

The correct fix to the bug: kill the %expect line in objc-parse.y.
This will have no functional change.  There was a warning before, and
there'll be a warning now, when you process objc-parse.y.  Only now,
you aren't claiming things that aren't true.

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu

  reply	other threads:[~2003-01-27 22:18 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-27 22:18 Gabriel Dos_Reis
2003-01-27 22:32 ` Gabriel Dos Reis
2003-01-27 22:52   ` Paolo Carlini
2003-01-27 23:10     ` Gabriel Dos Reis
2003-01-28  0:03       ` Raja R Harinath [this message]
2003-01-28  0:23         ` Gabriel Dos Reis
2003-01-27 22:56 ` Joseph S. Myers
2003-01-27 23:20   ` Gabriel Dos Reis
2003-01-28  1:47   ` Ziemowit Laski
2003-01-28  5:19     ` Gabriel Dos_Reis
2003-01-28 11:39     ` Joseph S. Myers
2003-01-28 12:43       ` Gabriel Dos Reis
2003-01-29  0:54       ` Ziemowit Laski
2003-01-29  1:32         ` Joseph S. Myers
2003-01-29  1:49           ` Ziemowit Laski
2003-01-29  2:18             ` Joseph S. Myers
2003-01-29  4:09               ` Stan Shebs
2003-01-30  2:01                 ` Joe Buck
2003-01-29  6:02               ` Ziemowit Laski
2003-01-30  1:43           ` Joe Buck
2003-01-30  2:07             ` Joseph S. Myers
2003-01-30  3:40               ` Joe Buck
2003-01-30  4:20               ` Ziemowit Laski
2003-01-30  4:27                 ` Joseph S. Myers
2003-01-30  6:56                   ` Ziemowit Laski
2003-01-30 11:07                     ` Neil Booth
2003-01-30 14:04                     ` Mark Mitchell
2003-01-30 22:43                       ` Neil Booth
2003-01-30 23:59                       ` Ziemowit Laski
2003-01-31 13:26                         ` Joseph S. Myers
2003-01-31 21:41                           ` Ziemowit Laski
2003-01-28 14:04 Paolo Bonzini
2003-01-30 23:38 Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d97kcqs0c5.fsf@bose.cs.umn.edu \
    --to=harinath@cs.umn.edu \
    --cc=gcc-bugs@gcc.gnu.org \
    --cc=gcc@gcc.gnu.org \
    --cc=gdr@integrable-solutions.net \
    --cc=pcarlini@unitus.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).