This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gas:Reject ++ and --


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]