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: Gas can't handle prefix generated by gcc


On Fri, Jul 23, 2004 at 02:22:10PM -0700, Zack Weinberg wrote:
> "H. J. Lu" <hjl@lucon.org> writes:
> 
> >> > It was added to gas on Jun 8, 1998.
> >> 
> >> Ok, that's good enough.  Now how about (b)?
> >
> > I have no ideas how other i386 assemblers handle it. It doesn't matter
> > much since gcc should check this feature before using it.
> 
> Lemme put it this way.  I am willing to write the patch to change GCC
> if and only if I do not have to write configure macros.  And configure
> macros must be written unless we can prove that "cs/je", "rep/stosl",
> etc. are acceptable by all the assemblers that people care about,
> since time immemorial.
> 
> So you get three choices:
> 
> 1) Make GAS accept cs;je and do the right thing.
> 2) Prove that cs/je, rep/stosl, etc are acceptable to all i386
>    assemblers since time immemorial.
> 3) Write the GCC patch yourself.  And I will not review it.
> 
> And yes, those are in order of decreasing preference.

';' 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. Also assembler uses different PREFIX_SEPARATOR for different i386
targets. I prefer a configure macro for this. I can write a patch. But
who will review it?


H.J.


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