From owner-freebsd-current@FreeBSD.ORG Tue Mar 8 00:20:33 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 21BAA1065704; Tue, 8 Mar 2011 00:20:33 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from doug-optiplex.ka9q.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 655641A7BF5; Tue, 8 Mar 2011 00:20:30 +0000 (UTC) Message-ID: <4D75764E.10108@FreeBSD.org> Date: Mon, 07 Mar 2011 16:20:30 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110304 Thunderbird/3.1.9 MIME-Version: 1.0 To: Alexander Best References: <20110307205957.GA47557@freebsd.org> <20110307214935.GA53914@freebsd.org> <20110307225652.GA61509@freebsd.org> In-Reply-To: <20110307225652.GA61509@freebsd.org> X-Enigmail-Version: 1.1.2 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: George Liaskos , freebsd-current@freebsd.org Subject: Re: r219385 build error. 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: Tue, 08 Mar 2011 00:20:33 -0000 On 03/07/2011 14:56, Alexander Best wrote: > "native" doesn't get handled by bsd.cpu.mk at all! it gets passed to gcc > directly and gcc choses -m{tune,arch} on it's own. > > don't add -march=* directly to CFLAGS. this is bound to go wrong at some > point. use CPUTYPE to set the cpu and CFLAGS for -O*, -pipe, etc. > > also please keep in mind that the optimisations that can be achieved by > finetuning make.conf are rather minor. some people think that with > cflags and cpu juju they can boost the OS. i don't believe that's true. the > chances are much greater that you're adding a problematic switch and end up > with binaries during installworld that segfault. so it's not really worth > getting into this kinda trouble just for the sake of optimisation. > > a simple > > CPUTYPE ?= native > COPTFLAGS = -O0 -pipe > CFLAGS = -O2 -pipe > > should be close to perfekt.;) Does any of this pertain to clang? Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/