This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using __sync_* builtins within libgcc code
H.J. Lu wrote:
> On Tue, Jun 10, 2008 at 02:27:17PM +0200, Paolo Carlini wrote:
>> Joseph S. Myers wrote:
>>> I hold that it is a bug that i686-* tools default to -march=i386 instead
>>> of -march=i686 (whereas e.g. sparcv9-* tools default to -mcpu=sparcv9, and
>>> -mcpu means -march for SPARC).
>> Seconded.
>>
>
> What arch should be used for -m32 on x86-64? Personally, I think
> it should be at least i686, if not SSE2.
I suppose that depends on your opinion as to why people use -32 on x86_64.
If it's just to make programs smaller, then i686 makes sense, but if it's
to make programs that will run on another, smaller (older?) box it doesn't.
I think we should be conservative, and assume little.
Andrew.