svn commit: r247166 - head/contrib/llvm/tools/clang/lib/Driver

Dimitry Andric dim at FreeBSD.org
Sat Feb 23 22:19:50 UTC 2013


On 2013-02-23 21:18, Konstantin Belousov wrote:
...
> Let me rephrase my question.
>
> What is the processor targeted by the cc on i386, when no -march flag is
> specified, for cc coming from clang, for both .c and .s files. Lets ignore
> known bugs, like long nops or cmovs.

For i386 arch on FreeBSD, the default has always been i486.  The cc1
stage, which compiles .c and .cpp to .o files, uses either this default
target CPU, or otherwise the CPU specified on the command line.

The cc1as stage, which assembles .s to .o files, only uses the target
CPU setting to determine whether to emit long nops or not, at least on
x86 arch.  After the last fix, the default target is i486, so it will
not emit long nops either, unless a higher CPU is specified.


More information about the svn-src-all mailing list