This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Add --alt-nops=short|long to x86/x86-64 assemblers
On Thu, Jun 15, 2006 at 04:15:02PM +0100, Paul Brook wrote:
> > > FWIW I've found it more useful to add .cpu and/or .arch assembly
> > > directives. Handling the gcc spec strings for commandline controls and
> > > making sure the gcc and gas defaults are consistent can get painful,
> > > especially if gcc has several different ways of specifying the cpu
> > > variant.
> >
> > x86/x86-64 assembler support .arch. But I don't think gcc uses it. I
> > am not sure how well it will work with existing code bases if gcc
> > starts generating .arch.
>
I was talking about the code like
asm ("some SSE instruction");
If gcc starts to generate ".arch i686", the code above won't compile
any more.
H.J.