This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: more than 10 operands in `asm'


>   >   - Extend the syntax to %{[0-9]+} for multi-digit operands.
> Ewwwww.  It may be backwards compatible, but it's butt ugly.

It would also raise the question how to quote a literal {.  Note that
{ ... } nesting is used for assembler dialects.

> Better to find any old style %digitdigit strings and fix them or define
> a simple syntax without context rules.

But how can you output a digit after an operand?

Whatever syntax we chose, we should make it general enough so that it
also covers %c<digit>, %n<digit>, %a<digit> and %l<digit>

Interstingly, Bernd's approach can be immediately applied to these
variants without introducing any conflicts.
To avoid conflicts with %{ for plain operands, we could use %o{<number>} .
However, we then have to check for possible conflicts with target ports
that might use this letter for something special.


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