[cfe-commits] r88819 - in /cfe/trunk: lib/Driver/Tools.cpp test/Driver/clang-translation.c

Daniel Dunbar daniel at zuster.org
Sun Nov 22 09:22:27 PST 2009


On Sun, Nov 22, 2009 at 7:26 AM, Chris Lattner <clattner at apple.com> wrote:
>
> On Nov 14, 2009, at 2:04 PM, Daniel Dunbar wrote:
>
>> Author: ddunbar
>> Date: Sat Nov 14 16:04:54 2009
>> New Revision: 88819
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=88819&view=rev
>> Log:
>> Add clang -mcpu=native support, patch by Roman Divacky, varioustweaks by me.
>> - We still need support for detecting the target features, since the name
>>   doesn't actually do a good job of decribing what the CPU supports (for LLVM).
>
> Very cool.  Should this be the default on linux and BSDs?

I personally think -march=native is not the right default, but I see
the arguments for it. I guess the argument for making it the default
on Linux/BSDs is that many users build their own software? What do
modern GCC's do? IIRC, you brought this up before and I don't think I
was the only opponent.

We also need to finish off some of the feature detection before this
feature works solidly.

 - Daniel

> -Chris
>
>




More information about the cfe-commits mailing list