Compiler Flags problem with core2 CPU

Aaron Lewis aaron.lewis1989 at gmail.com
Sun Feb 28 13:00:58 UTC 2010


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 ?

    And is that useful to let gcc select cpu specified asm code ?

-- 
Best Regards,
Aaron Lewis - PGP: 0xA476D2E9
irc: A4r0n on freenode



More information about the freebsd-questions mailing list