gas:Reject ++ and --
Alan Modra
amodra@bigpond.net.au
Sat May 22 12:38:00 GMT 2004
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
More information about the Binutils
mailing list