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: Incomplete .macro documentation?


Hi Nick,

> It is not clear exactly what you want this macro to expand to.  Are
> you expecting 'TEST 1' to produce:
> 
>     .equ REG1_TEST,0
>     .equ REG1_TEST,1
> 
> If so, then why have two .equ directives when the second one will
> override the first ?
> 

that is what I wanted, but the second .equ was supposed to be different :)
(just a copy-pase error ")

> > This I take is a feature of macros, but I didn't find anything about
> > this in binutils manual.
> 
> You are correct, this feature is not documented.  (And it should be).
> 
> > If not I think that it should be added :)) OK I can add it if
> > anybody will point me to correct place ;)
> 
> Please add it to gas/doc/as.texinfo in the node that describes the
> .macro command.
> 

I'll add that and I'll also check macro.c for other undocumented
features :).


Jan


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