[cfe-dev] cmus compiled with clang crashes with sigill

Chris Lattner clattner at apple.com
Thu Jun 25 14:34:34 PDT 2009


On Jun 25, 2009, at 2:27 PM, Gregory Petrosyan wrote:

> On Thu, Jun 25, 2009 at 09:18:08AM -0700, Chris Lattner wrote:
>> This is probably because clang defaults to SSE2.  Try passing -
>> mcpu=athlon-xp to clang.
>>
>
> Thanks — that fixed the SIGILL issue. But why does clang defaults to
> SSE2? It is more than strange when program compiled without any  
> special
> arch flags crashes due to use of SSE2. Wouldn't defaulting to 486 or
> something like that make more sense?

We want clang to default to the native CPU type on linux, but noone  
has written the code to do it yet,

-Chris



More information about the cfe-dev mailing list