This is the mail archive of the
mailing list for the binutils project.
Re: Gas can't handle prefix generated by gcc
On Fri, Jul 23, 2004 at 04:36:57PM -0700, Zack Weinberg wrote:
> "H. J. Lu" <email@example.com> 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.
IBM OzLabs - Linux Technology Centre