This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: gas:Reject ++ and --
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Nathan Sidwell <nathan at codesourcery dot com>,binutils at sources dot redhat dot com,Michal Ostrowski <mostrows at watson dot ibm dot com>
- Date: Sat, 22 May 2004 17:32:52 +0930
- Subject: Re: gas:Reject ++ and --
- References: <40587B89.5050107@codesourcery.com> <20040416015426.GA2557@bubble.modra.org> <407FFBB1.4000804@codesourcery.com> <20040518193527.GL5191@sunsite.ms.mff.cuni.cz>
On Tue, May 18, 2004 at 09:35:27PM +0200, Jakub Jelinek wrote:
> On Fri, Apr 16, 2004 at 04:28:49PM +0100, Nathan Sidwell wrote:
> > Alan Modra wrote:
> > >On Wed, Mar 17, 2004 at 04:23:37PM +0000, Nathan Sidwell wrote:
> > >
> > >>the attached patch causes gas to not interpret ++ and -- as two
> > >>+ or - operators in a row. The current behaviour is to allow
> > >>'a ++ b' as if it was 'a + (+b)' and '++ a' as if '+(+a)'. The problem
> > >
> > >
> > >This patch had an off-by-one error, breaking code like the following:
> > Gah!, sorry
>
> Even with this fix the ++/-- patch breaks previously working code.
[snip]
> Note there wasn't ++ nor -- present in the assembly, but
> ldub [%o1 - -0x02 - 0x02], %g2
> Yet current CVS gas still refuses it.
That's the preprocessor removing whitespace. :-(
--
Alan Modra
IBM OzLabs - Linux Technology Centre