From owner-freebsd-current@FreeBSD.ORG Sat Jun 5 06:11:06 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FB17106564A; Sat, 5 Jun 2010 06:11:06 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id A29838FC08; Sat, 5 Jun 2010 06:11:05 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id l26so247358fgb.13 for ; Fri, 04 Jun 2010 23:11:04 -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:in-reply-to:message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=PAXa5fzcAUcUiErds9EAQm7q78fCnY2x/EbL7/sDU1Y=; b=Lt3ru15OiKmxrzXT09nyPy9BEN8Ojr0HAAJl0+A05bb8lNbyKLDPEPJ/0kJL6A4ath JcNujt58fC5qtwdPHNohm0AXKfcwcsKe9k79ffC3JWbNnjMj4ZHKFLAEqxf9/v/RxhUV 7Wx6hNWjUp9clTKy48n1T11G8UxQLkMPuemL0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; b=iO5TZRpesCJjztoviIQHcd+oweGGgbL1tWtQHOBMtz5AMip9cBVJO8t0Mas1/RUGBq vl1xERC9EZq6CA7lDISDPopYWVnV8wTW/Y6ZX69MhgNawBRU/eDYkDdWrjHRwu0Ni7gY 2A9I8MAwRH0vWlIpbkHuzdXX1TWD/fdbIs6yo= Received: by 10.87.71.7 with SMTP id y7mr18881939fgk.63.1275718264210; Fri, 04 Jun 2010 23:11:04 -0700 (PDT) Received: from localhost ([66.90.104.9]) by mx.google.com with ESMTPS id d6sm6852479fga.18.2010.06.04.23.10.30 (version=SSLv3 cipher=RC4-MD5); Fri, 04 Jun 2010 23:11:02 -0700 (PDT) From: Anonymous To: Doug Barton References: <20100604152605.GA80277@freebsd.org> <4C0930E3.3030301@FreeBSD.org> <4C093D60.1010008@FreeBSD.org> <4C099C93.8050709@FreeBSD.org> <4C09D5F7.1050901@FreeBSD.org> Date: Sat, 05 Jun 2010 06:10:06 +0000 In-Reply-To: <4C09D5F7.1050901@FreeBSD.org> (Doug Barton's message of "Fri, 04 Jun 2010 21:43:35 -0700") Message-ID: <861vcm6mdd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Roman Divacky , current@freebsd.org, Andrius =?utf-8?Q?Mork=C5=ABnas?= Subject: Re: [INFO]: import of clang/LLVM to happen on June 9th 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: Sat, 05 Jun 2010 06:11:06 -0000 Doug Barton writes: > On 06/04/10 17:38, Doug Barton wrote: >> On 06/04/10 11:28, Andrius Mork=C5=ABnas wrote: >> >>> http://www.freebsd.org/doc/en_US.ISO8859-1/articles/custom-gcc/configur= ing-ports-gcc.html > > Ok, everything in that section seems clear except this in 3.3: > It is possible to completely replace CFLAGS and/or define custom > CPUTYPE as well. We recommend setting CPUTYPE because many ports > decide their optimizations flags based on this variable. Most ports decide features based on MACHINE_CPU not CPUTYPE. However, MACHINE_CPU doesn't support non-base compiler and `native' CPUTYPE. Plus core2 CPUTYPE is silently degraded to nocona/prescott even when it's supported by underlying compiler. See conf/112997. > > How do I figure out what to set for CPUTYPE? Also, what else should I > include in CFLAGS besides -mssse3? I have a core 2 duo processor, IIRC, on gcc44+ -march=3Dnative automatically enables -msse[1234]. But if you don't want to use CPUTYPE=3Dnative then add cc1 flags to CFLAGS, e.g. $ gcc45 -E -v -march=3Dnative - which says this at boot time: > CPU: Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz (2330.23-MHz > 686-class CPU) > Origin =3D "GenuineIntel" Id =3D 0x6f6 Family =3D 6 Model =3D f Ste= pping =3D 6 > > Features=3D0xbfebfbff > Features2=3D0xe3bd > AMD Features=3D0x20100000 > AMD Features2=3D0x1 > TSC: P-state invariant > > > Thanks! > > Doug