broken macro argument separation

Nick Clifton nickc@redhat.com
Wed Oct 27 13:43:00 GMT 2010
Hi Jan,

> .macro m arg1 arg2=0
> 	.long	\arg1, \arg2
> .endm

>     9              		m	1 -2 +3
>     9 0018 01000000 	>  .long 1,-2+3

> i.e. white space between a number and '-' is retained while white
> space between a number and '+' isn't.

> Suggestions/opinions anyone?

How about having the assembler issue a warning message when an operator 
character is interpreted as a macro argument separator ?  The warning 
could be disabled via a command line switch, but it would alert 
assembler programmers to the behaviour if they were unaware of it.

Cheers
   Nick



More information about the Binutils mailing list