Gas can't handle prefix generated by gcc

Alan Modra amodra@bigpond.net.au
Sat Jul 24 23:34:00 GMT 2004


On Fri, Jul 23, 2004 at 04:36:57PM -0700, Zack Weinberg wrote:
> "H. J. Lu" <hjl@lucon.org> writes:
> > ';' is a line terminator for assembler. Assembler won't see the string
> > of "cs;je" at all. I don't think adding such a hack for gcc is a good
> > idea.
> 
> My idea of the Right Thing would be to recognize an instruction
> consisting only of a prefix opcode (any prefix opcode - not just
> segment overrides), and save it to be combined with the next one.
> That would handle "cs;je", "rep\n\tmovsl", and so on.

This is a bad idea.  You'd be changing the meaning of dot, potentially
breaking existing assembler code.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list