From owner-freebsd-toolchain@FreeBSD.ORG Tue Nov 8 15:39:02 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5280106567D for ; Tue, 8 Nov 2011 15:39:02 +0000 (UTC) (envelope-from rdivacky@vlakno.cz) Received: from vlakno.cz (vlakno.cz [46.28.110.116]) by mx1.freebsd.org (Postfix) with ESMTP id 9CFFC8FC08 for ; Tue, 8 Nov 2011 15:39:02 +0000 (UTC) Received: by vlakno.cz (Postfix, from userid 1002) id 13C397F383F; Tue, 8 Nov 2011 16:38:56 +0100 (CET) Date: Tue, 8 Nov 2011 16:38:56 +0100 From: Roman Divacky To: Dimitry Andric Message-ID: <20111108153856.GA90966@freebsd.org> References: <20111108002556.GA91218@freebsd.org> <4EB8E07B.5070908@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4EB8E07B.5070908@FreeBSD.org> User-Agent: Mutt/1.4.2.3i Cc: Alexander Best , freebsd-toolchain@freebsd.org Subject: Re: CPUTYPE=native handling X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2011 15:39:03 -0000 On Tue, Nov 08, 2011 at 08:55:39AM +0100, Dimitry Andric wrote: > On 2011-11-08 01:25, Alexander Best wrote: > > i've seen dozens of issues, where people set CPUTYPE=native. although this > > works in a lot of cases, it doesn't in others. why don't we simply add > > something like > > > > . if ${CPUTYPE} == "native" > > . error "bla" > > . endif > > > > in share/mk/bsd.cpu.mk for now? or at least for the archs, where "native" is > > known to cause problems. > > What does this solve? Don't you think it is better to try to fix the > actual problems? Some people like being able to optimize for their Yes, we definitely should aim for fixing the problems instead of working around them. This way both clang and freebsd benefits. roman