This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Default gcc tuning?
"Ian Lance Taylor" <iant@google.com>
??????:m3bqhei86l.fsf@localhost.localdomain...
> "Zuxy Meng" <zuxy.meng@gmail.com> writes:
>
>> I mean what will gcc do if no '--with-cpu' '--with-arch' '--with-tune'
>> etc
>> are given during configuration. Specifically for x86, when neither march
>> nor
>> mtune is given, will gcc merely treat it as march=i386 mtune=i386?
>
> You need to say precisely how gcc was configured, or you need to tell
> us the "Target:" line printed by gcc -v.
I got several gcc on various machines. Targets include 'i686-pc-linux',
'mingw32' and 'sparc-sun-solaris2.8', so by default gcc will produce code
optimized for i686, i386 and v7?
> If the target is, e.g., i386-pc-linux-gnu, and none of the options you
> mentioned was specified, then older versions of gcc will tune for the
> i386, and recent versions of gcc will tune as though gcc were
> configured with --with-tune=generic.
--
Zuxy