Re: Compiler Flags problem with core2 CPU

2010-03-03 Thread Chuck Swiger
Aaron Lewis wrote: [r...@meilk /usr/src/sys/i386/compile/AARON]# make CC='cc' make -f ../../../dev/aic7xxx/aicasm/Makefile MAKESRCPATH=../../../dev/aic7xxx/aicasm Warning: Object directory not changed from original /usr/src/sys/i386/compile/AARON cc -O2 -pipe -march=i686 -ffast-math -mfpmath=s

Re: Compiler Flags problem with core2 CPU

2010-03-03 Thread Giorgos Keramidas
On Tue, 2 Mar 2010 23:26:20 +0200, Dan Naumov wrote: >>See the section "3.17.14 Intel 386 and AMD x86-64 Options" in the gcc >>Info manual. It contains a full list of the supported CPU-TYPE values >>for the -mtune=CPU-TYPE option. The -march=CPU-TYPE option accepts the >>same CPU types: >> >>

Re: Compiler Flags problem with core2 CPU

2010-03-03 Thread Aaron Lewis
[r...@meilk /usr/src/sys/i386/compile/AARON]# make CC='cc' make -f ../../../dev/aic7xxx/aicasm/Makefile MAKESRCPATH=../../../dev/aic7xxx/aicasm Warning: Object directory not changed from original /usr/src/sys/i386/compile/AARON cc -O2 -pipe -march=i686 -ffast-math -mfpmath=sse -O3 -nostdinc -I

Re: Compiler Flags problem with core2 CPU

2010-03-02 Thread ill...@gmail.com
On 28 February 2010 07:38, Aaron Lewis 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

RE: Compiler Flags problem with core2 CPU

2010-03-02 Thread Dan Naumov
>See the section "3.17.14 Intel 386 and AMD x86-64 Options" in the gcc >Info manual. It contains a full list of the supported CPU-TYPE values >for the -mtune=CPU-TYPE option. The -march=CPU-TYPE option accepts the >same CPU types: > >`-march=CPU-TYPE' > Generate instructions for the m

Re: Compiler Flags problem with core2 CPU

2010-03-02 Thread Giorgos Keramidas
On Sun, 28 Feb 2010 22:37:27 +0800, Aaron Lewis wrote: >Paul B Mahol wrote: >>On 2/28/10, Aaron Lewis 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.gCFLAG

Re: Compiler Flags problem with core2 CPU

2010-03-02 Thread Giorgos Keramidas
On Sun, 28 Feb 2010 20:38:45 +0800, Aaron Lewis 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.gCFLAGS += -march=core2 -O20 -ffast-math -mfpmath=sse >But it fails

[SOLVED] Compiler Flags problem with core2 CPU

2010-03-02 Thread Aaron Lewis
James Phillips wrote: I laughed at your question because I remember reading somewhere that using aggressive optimization options is a good way to find compiler bugs. I think that extends of optimizations for "new" CPU architectures as well. I also heard kernel code avoids MMX instructions for som

Re: Compiler Flags problem with core2 CPU

2010-03-01 Thread James Phillips
> Date: Sun, 28 Feb 2010 22:37:27 +0800 > From: Aaron Lewis > Subject: Re: Compiler Flags problem with core2 CPU > To: Paul B Mahol > Cc: freebsd-questions@freebsd.org > Message-ID: <4b8a7fa7.1070...@gmail.com> > Content-Type: text/plain; charset=ISO-8859-1; > fo

Re: Compiler Flags problem with core2 CPU

2010-02-28 Thread Paul B Mahol
Do not top post. On 2/28/10, Aaron Lewis wrote: > Really ? It's bad to use custom flags to compile kernel , why do you > think so ? > I'd like to know more about this : ) Use google. > > So setting optimize compiler flags is only useful for userland stuff ? > > Paul B Mahol wrote: >> On 2/28/10,

Re: Compiler Flags problem with core2 CPU

2010-02-28 Thread Aaron Lewis
Really ? It's bad to use custom flags to compile kernel , why do you think so ? I'd like to know more about this : ) So setting optimize compiler flags is only useful for userland stuff ? Paul B Mahol wrote: On 2/28/10, Aaron Lewis wrote: Hi, I gonna recompile kernel for my core2 CPU

Re: Compiler Flags problem with core2 CPU

2010-02-28 Thread Paul B Mahol
On 2/28/10, Aaron Lewis 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.gCFLAGS += -march=core2 -O20 -ffast-math -mfpmath=sse > But it fails .. bad arch switch

Compiler Flags problem with core2 CPU

2010-02-28 Thread Aaron Lewis
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.gCFLAGS += -march=core2 -O20 -ffast-math -mfpmath=sse But it fails .. bad arch switch , core2 cpu is not supported ? And is