Date: Sun, 28 Feb 2010 14:24:12 +0000 From: Paul B Mahol <onemda@gmail.com> To: Aaron Lewis <aaron.lewis1989@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Compiler Flags problem with core2 CPU Message-ID: <3a142e751002280624w6f38d297o65b88301b3e5f8d@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 2/28/10, Aaron Lewis <aaron.lewis1989@gmail.com> wrote: > Hi, > I gonna recompile kernel for my core2 CPU , so i'd like to pass some > flags to gcc. > Kinds of "-march=core2" , i tried to modify /etc/make.conf > > e.g CFLAGS += -march=core2 -O20 -ffast-math -mfpmath=sse > But it fails .. bad arch switch , core2 cpu is not supported ? It is bad idea to compile kernel with custom flags. And gcc in FreeBSD doesn't know about core2, use 'native' if you must. > > And is that useful to let gcc select cpu specified asm code ? Only for some userland stuff like openssl.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3a142e751002280624w6f38d297o65b88301b3e5f8d>