Date: Tue, 2 Mar 2010 23:57:20 -0500 From: "illoai@gmail.com" <illoai@gmail.com> To: Aaron Lewis <aaron.lewis1989@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Compiler Flags problem with core2 CPU Message-ID: <d7195cff1003022057t594281eblf2ba394662e132dd@mail.gmail.com> In-Reply-To: <4B8A63D5.90104@gmail.com> References: <4B8A63D5.90104@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 28 February 2010 07:38, Aaron Lewis <aaron.lewis1989@gmail.com> wrote: > Hi, > =A0 I gonna recompile kernel for my core2 CPU , so i'd like to pass some = flags > to gcc. > =A0 Kinds of "-march=3Dcore2" , i tried to modify /etc/make.conf > =A0 =A0 e.g =A0 =A0CFLAGS +=3D -march=3Dcore2 -O20 -ffast-math -mfpmath= =3Dsse > =A0 But it fails .. bad arch switch , core2 cpu is not supported ? Just so you know -O20 is the same as saying -O3. I don't think everything in base is safe for -ffast-math, but setting it in make.conf will surely test that. -O2 is already turned on almost everywhere by default, so also, I believe, with -fomit-frame-pointer. The only thing I've ever found to be remotely useful to change was -Os on an old, space-restricted machine. But last time I tried -Os on amd64 it broke. Badly. --=20 --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d7195cff1003022057t594281eblf2ba394662e132dd>