From owner-freebsd-questions@FreeBSD.ORG Wed Mar 3 04:57:24 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECA83106568A for ; Wed, 3 Mar 2010 04:57:24 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id A9D8B8FC1F for ; Wed, 3 Mar 2010 04:57:24 +0000 (UTC) Received: by gwaa20 with SMTP id a20so615906gwa.13 for ; Tue, 02 Mar 2010 20:57:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=P/W8/txIiE8NEkRvU1TvB9DqAXE5bJhDzBxg1CHCVxU=; b=XhBqtYpLdajiT+soAPnvTea+OIs0EpaWlu0f+YMWFGnN+RjUgrLVmMX0dfyq2t8efI 7dbtneWZVDsKO1VGDiOSWZ+K6RtOAizUaLQcT6d2Qo49yh2U30RGpDbIZ+Nv17pX8M1t QyMPGp5RBxDsA/h3PZGO0D6I3Ce9fYliaXGXQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=CZlMQDlKA7GyiDs37lwMs09Z4f/XtvbJDD79eISmgCP+iCq7rgmqoic+aOPh2j+2ic l7jHUCPvugLWJx6ywdlMeYZ0rx0G1+E3l1AVn6NpPa9MsGR/OCEfRJaF5rBCjIgamUeg sNej6FtIxruvvl4XbZrg3yg3NktsaVkV4e8RQ= MIME-Version: 1.0 Received: by 10.90.40.4 with SMTP id n4mr2043537agn.44.1267592240163; Tue, 02 Mar 2010 20:57:20 -0800 (PST) In-Reply-To: <4B8A63D5.90104@gmail.com> References: <4B8A63D5.90104@gmail.com> Date: Tue, 2 Mar 2010 23:57:20 -0500 Message-ID: From: "illoai@gmail.com" To: Aaron Lewis Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Compiler Flags problem with core2 CPU 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: Wed, 03 Mar 2010 04:57:25 -0000 On 28 February 2010 07:38, Aaron Lewis 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 --