From owner-freebsd-questions@FreeBSD.ORG Mon Jan 30 01:12:20 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0412C16A420 for ; Mon, 30 Jan 2006 01:12:20 +0000 (GMT) (envelope-from andrew.chace@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FDDD43D46 for ; Mon, 30 Jan 2006 01:12:19 +0000 (GMT) (envelope-from andrew.chace@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so1016916nzo for ; Sun, 29 Jan 2006 17:12:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=njXHLXR8YlzFxU/sf6grWpubRuR0DD3oYOqNbG7a23tVA+VCtuwFgccNLlvGnDxALMHI1pXSbB0yMq6WNQg9ZAbyj0zDbLBE0Yaz9BFNkQTE/kJ1cbuG1MANDUlgeZGXWRp4dENzEDBOpv8OFKrs0VZkN+VlRkcXEb7CyCZjX1U= Received: by 10.36.42.5 with SMTP id p5mr4378062nzp; Sun, 29 Jan 2006 17:12:18 -0800 (PST) Received: from netvista.network ( [71.32.167.10]) by mx.gmail.com with ESMTP id p4sm2235980nzc.2006.01.29.17.12.17; Sun, 29 Jan 2006 17:12:18 -0800 (PST) From: Andrew Chace To: Norberto Meijome In-Reply-To: <43DD3341.4070103@meijome.net> References: <43DD3341.4070103@meijome.net> Content-Type: text/plain Date: Sun, 29 Jan 2006 19:12:37 -0600 Message-Id: <1138583557.644.54.camel@netvista.network> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: gcc options when building kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2006 01:12:20 -0000 On Mon, 2006-01-30 at 08:27 +1100, Norberto Meijome wrote: > Hi all, > I'm rebuilding my kernel and I noticed some gcc (I believe ) options > being used that I don't think I set anyway. > > The options are : > -mno-mmx -mno-3dnow -mno-sse -mno-sse2 > > Does this mean that the kernel won't make use of these cpu features, > even though they are supported by the cpu (see below) > > Thanks! > Beto > > ---- MORE INFO ---- > > They seem to appear throughout the kernel build process, for example: > > --- > cc -O2 -fno-strict-aliasing -pipe -O2 -pipe -march=pentium-m > -DAHC_REG_PRETTY_PRINT=1 -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- > -DHAVE_KERNEL_OPTION_HEADERS -include > /usr/obj/usr/src/sys/AYIIN/opt_global.h -I. -I@ -I@/contrib/altq > -I@/../include -finline-limit=8000 -fno-common -g > -I/usr/obj/usr/src/sys/AYIIN -mno-align-long-strings > -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 > -ffreestanding -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -fformat-extensions -std=c99 -c > /usr/src/sys/modules/aic7xxx/ahc/../../../dev/aic7xxx/aic7xxx.c > > cc -O2 -fno-strict-aliasing -pipe -O2 -pipe -march=pentium-m > -DAHC_REG_PRETTY_PRINT=1 -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- > -DHAVE_KERNEL_OPTION_HEADERS -include > /usr/obj/usr/src/sys/AYIIN/opt_global.h -I. -I@ -I@/contrib/altq > -I@/../include -finline-limit=8000 -fno-common -g > -I/usr/obj/usr/src/sys/AYIIN -mno-align-long-strings > -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 > -ffreestanding -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -fformat-extensions -std=c99 -c > /usr/src/sys/modules/aic7xxx/ahc/../../../dev/aic7xxx/aic7xxx_93cx6.c > --- > > from DMESG, my cpu is : > --- > CPU: Intel(R) Pentium(R) M processor 1.50GHz (1496.26-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x6d6 Stepping = 6 > > Features=0xafe9f9bf > Features2=0x180 > --- > > My /etc/make.conf is: > ----- > BOOTWAIT=4000 > > SUP_UPDATE="YES" > SUP="/usr/local/bin/cvsup" > SUPFILE="/usr/local/etc/stable-supfile" > PORTSSUPFILE="/usr/local/etc/ports-supfile" > > ENABLE_WPA_SUPPLICANT_EAPOL=true > NO_PROFILE=true > NO_INET6=true > NO_PORTSUPDATE=true > NO_ATM=true > > X_WINDOW_SYSTEM=xorg > > DOC_LANG = en_US.ISO8859-1 > > CPUTYPE?=pentium-m > CFLAGS+= -O2 -pipe > # added by use.perl 2006-01-24 12:09:58 > PERL_VER=5.8.7 > PERL_VERSION=5.8.7 > > WITH_MOZILLA="firefox" > WITH_FAM_SYSTEM=fam > ---- I am curious about this as well... I searched the mailing list arhives, and googled for a bit, but didn't really come up with anything useful. Anyone have any pointers to the discussion that was mentioned previously?