🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1981

Bug in either GCC 1.31 grammar or in Bison

#1981
From: Roland McGrath
Date: Thu, 24 Nov 1988 08:03
17 lines
993 bytes
There seems to be a bug in either the GCC 1.31 grammar (c-parse.y) or is
Bison.  The bug is independent of what machine GCC is configured for, but
I'm using a Sun 3 running Sun Unix 3.2.

For some reason, the parser gags on multiple clobbered registers in `asm'
statements.  The file:

foo (){
asm("insn" : : "r0", "r1");
}

produces:

bug1: In function foo:
bug1:2: parse error before `,'

It doesn't complain about only one clobbered register.
Technical Details
Message-ID: <8811240803.AA03068@tully.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!yunexus!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!GINGER.BERKELEY.EDU!mcgrath%tully.Berkeley.EDU

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!yunexus!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!GINGER.BERKELEY.EDU!mcgrath%tully.Berkeley.EDU
From: mcgrath%tully.Berkeley.EDU@GINGER.BERKELEY.EDU (Roland McGrath)
Newsgroups: gnu.gcc.bug
Subject: Bug in either GCC 1.31 grammar or in Bison
Message-ID: <8811240803.AA03068@tully.Berkeley.EDU>
Date: 24 Nov 88 08:03:28 GMT
Article-I.D.: tully.8811240803.AA03068
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: roland@wheaties.ai.mit.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 17