kernel make noise with clang suppression

Matthew Jacob mj at feral.com
Thu Jun 10 19:31:35 UTC 2010


On 6/10/2010 12:29 PM, Anonymous wrote:
> Matthew Jacob<mj at feral.com>  writes:
>
>    
>> Comments? (yes, I know -fformat-extensions have just been added...)
>>
>>
>>
>> diff -r ea5e09d013e7 sys/conf/kern.mk
>> --- a/sys/conf/kern.mk	Thu Jun 10 07:40:51 2010 -0700
>> +++ b/sys/conf/kern.mk	Thu Jun 10 11:35:50 2010 -0700
>> @@ -63,9 +67,15 @@
>>   # reserved for user applications.
>>   #
>>   .if ${MACHINE_ARCH} == "amd64"
>> +.if ${CC} == "clang"
>> +CFLAGS+=	-mcmodel=kernel -mno-red-zone \
>> +		-mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow \
>>      
> Shouldn't be there all supported -msse* by clang? I for one have ssse3
> and sse4.1 that are not supported by basegcc.
>    

SSE instructions are disabled in the kernel.



More information about the freebsd-current mailing list