From owner-freebsd-current@FreeBSD.ORG Thu Jun 10 19:29:20 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6963D106566C for ; Thu, 10 Jun 2010 19:29:20 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id EAD518FC17 for ; Thu, 10 Jun 2010 19:29:19 +0000 (UTC) Received: by fxm7 with SMTP id 7so272081fxm.13 for ; Thu, 10 Jun 2010 12:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:message-id:mime-version:content-type; bh=u6hYw+Hv7R8P2eS2l4POGL9sDDoYrq3Gnibdt6hh2vw=; b=IqKXOvCFYJgX5cxbJun/2pN7FdAS4mG1jaU1hWYcpuTR9KToSQc30xpEF04oJsmVvu KW2/jHrU8/Gv5SCg/+164LqH7hi4dCoc5EdgHttRFVhl1gZ/+FpSKN442s8HyZ4Td+3e PZM90yNKgF5Xt8fEaSYL7StK5ICJIR2Cg5aCE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:mime-version :content-type; b=F951KDKR7X1UclOxtNKnYTabOkcUOLDPr67oyw223pX5F4MYTEpnU2hK9bgdfPxoEe mrc6+1pi/ULX9rh+S0g2uA56Eitp4DIMFo8AYFOI9/EeM47q0NfwdHHg3Uz3w7lqRRp4 G/Ejc84NmM4eonxjG8qRurEXV6OBGnMcZ2vw4= Received: by 10.204.9.9 with SMTP id j9mr447775bkj.206.1276198158435; Thu, 10 Jun 2010 12:29:18 -0700 (PDT) Received: from localhost (hd5b906df.selukra.dyn.perspektivbredband.net [213.185.6.223]) by mx.google.com with ESMTPS id v14sm1279378bkz.20.2010.06.10.12.29.12 (version=SSLv3 cipher=RC4-MD5); Thu, 10 Jun 2010 12:29:14 -0700 (PDT) From: Anonymous To: Matthew Jacob References: <4C113167.8040205@feral.com> Date: Thu, 10 Jun 2010 19:29:09 +0000 Message-ID: <861vcesn3u.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-current@freebsd.org Subject: Re: kernel make noise with clang suppression X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2010 19:29:20 -0000 Matthew Jacob 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. $ clang -dM -E -march=native - <&- | awk '/SSE/ && !/MATH/' #define __SSE2__ 1 #define __SSE3__ 1 #define __SSE4_1__ 1 #define __SSE__ 1 #define __SSSE3__ 1 If my guess is right then extracting possible GCC flags should be enough $ gcc45 -Q --help=target -march=native | grep 'sse[[:digit:]].*' -mno-sse4 [disabled] -msse2 [enabled] -msse2avx [disabled] -msse3 [enabled] -msse4 [disabled] -msse4.1 [enabled] -msse4.2 [disabled] -msse4a [disabled] -mssse3 [enabled] and you're missing only `-mno-ssse3 -mno-sse4 -mno-sse4a'. > + -msoft-float -fno-asynchronous-unwind-tables > +.else > CFLAGS+= -mcmodel=kernel -mno-red-zone \ > -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow \ > -msoft-float -fno-asynchronous-unwind-tables > +.endif > INLINE_LIMIT?= 8000 > .endif >