This is the mail archive of the binutils@sourceware.org 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: broken macro argument separation


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


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