d10v: reject pre-increment

Alexandre Oliva aoliva@redhat.com
Thu Nov 15 17:31:00 GMT 2001


The d10v assembler used to silently turn @+r# into @r#+, since postfix
would remove the `+' operator regardless of its being in front of the
register name.  This patch arranges for the `+' to be turned into a
separate token after the ATSIGN, such that it is rejected.  Another
alternative I considered was to simply not call postfix() if *p=='+',
such that we'd parse `+r#' as an expression.  This would result in
`r2' being referenced as a symbol, not a register.  I thought we'd
better report the invalid operand instead.  Ok to install?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: d10v-gas-prefix-plus.patch
Type: text/x-patch
Size: 676 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20011115/7b033ed3/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


More information about the Binutils mailing list