Date: Tue, 08 Nov 2011 08:55:39 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Alexander Best <arundel@freebsd.org> Cc: freebsd-toolchain@freebsd.org Subject: Re: CPUTYPE=native handling Message-ID: <4EB8E07B.5070908@FreeBSD.org> In-Reply-To: <20111108002556.GA91218@freebsd.org> References: <20111108002556.GA91218@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 specific CPU, however much you can shoot yourself in the foot with it. I haven't seen any consistent bug reports yet, just a lot of complaints that indicate a rather high probability of PEBKAC. And just to counter the nay-saying, I compiled a number of boxes with clang -march=native (mostly of the Xeon/i7 variant) and I haven't seen any problems at all.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EB8E07B.5070908>