On Mon, Jan 19, 2004 at 06:23:30PM +1100, Chris Knight wrote: > Howdy, > > I'm just doing a release build of 5.2 and have noticed that > from Stage 4.2 onwards, -mcpu=pentiumpro is added to the cc > command line. > The only place I can see this being set is in /etc/make.conf > which is outside the sandbox. > I was expecting the release build to be CPU agnostic, but > this doesn't appear to be the case. Any way of overriding > this without modifying /etc/make.conf? > There's a substantional difference between -mcpu and -march: : -mcpu=cpu type : Assume the defaults for the machine type CPU TYPE when schedul- : ing instructions. The choices for CPU TYPE are: i386, i486, : i586 (pentium), pentium, i686 (pentiumpro), and pentiumpro. : While picking a specific CPU TYPE will schedule things appropri- : ately for that particular chip, the compiler will not generate ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ : any code that does not run on the i386 without the -march=cpu ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ : type option being used. : : -march=cpu type : Generate instructions for the machine type CPU TYPE. The choic- : es for CPU TYPE are: i386, i486, pentium, and pentiumpro. Spec- : ifying -march=cpu type implies -mcpu=cpu type. Please also see the commit log for bsd.cpu.mk,v 1.13. Cheers, -- Ruslan Ermilov FreeBSD committer ru_at_FreeBSD.org
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:38 UTC