From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qlpvm-0007b9-Eb for garchives@archives.gentoo.org; Tue, 26 Jul 2011 22:16:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 446A121C34C; Tue, 26 Jul 2011 22:16:37 +0000 (UTC) Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com [209.85.212.53]) by pigeon.gentoo.org (Postfix) with ESMTP id A85C421C1A1 for ; Tue, 26 Jul 2011 22:15:38 +0000 (UTC) Received: by vws13 with SMTP id 13so843168vws.40 for ; Tue, 26 Jul 2011 15:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; bh=O43F5g4EKvZk5xjtrNIxdBdOMmwaJNIOPDxxW9/Ew6g=; b=D5vQxqjzOomdsoFnkEbOeLzPk18U1pl2c/DjDimq7lBPxP0Sun8qZocpG5NETXy0FT NV0tJjrOFeRdX1LO9K6m1bzFJ2hNhCDjBlY0MsppTQfRIUK8HRcVX0dLMR1FZFw8GuRv wMki0giHkLuCi6BDuroV5HyAi5rxtn7nCmeP8= Received: by 10.52.155.135 with SMTP id vw7mr5783672vdb.238.1311718538088; Tue, 26 Jul 2011 15:15:38 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Sender: paul.hartman@gmail.com Received: by 10.52.165.2 with HTTP; Tue, 26 Jul 2011 15:15:17 -0700 (PDT) In-Reply-To: <201107262301.46522.michaelkintzios@gmail.com> References: <4E2F253E.1000508@alokat.org> <201107262301.46522.michaelkintzios@gmail.com> From: Paul Hartman Date: Tue, 26 Jul 2011 17:15:17 -0500 X-Google-Sender-Auth: UJxhrDE6OaCJI0O0g9P-UEeZN0g Message-ID: Subject: Re: [gentoo-user] CFlags for CPU To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 6e7c00d3887357b48ca3cfaa22d0f2c3 On Tue, Jul 26, 2011 at 5:01 PM, Mick wrote: > On Tuesday 26 Jul 2011 20:02:05 Paul Hartman wrote: >> On Tue, Jul 26, 2011 at 3:36 PM, Alokat wrote: >> > I'm wondering what kind of cpu-type I should use? >> >> Hi, >> >> I think, in your case, core2 is the correct one. >> >> If you run this command: >> gcc -Q --help=3Dtarget =A0-march=3Dnative >> >> gcc will tell you what it thinks are the best options for your CPU. > > Thanks for this - I better make a note of it! =A0;-) > > Does this mean that I did not need to have all these flags specified, bec= ause > they're already included? Not quite; that command specifically shows you the options that would be used if you were using -march=3Dnative. Since you're not using native, change it to: gcc -Q --help=3Dtarget -march=3Dcore2 And that will show the defaults when you're using core2 as the arch. (On my own system, a side-by-side comparison of native vs core2 shows a lot of differences) If native shows something as "enabled" but core2 doesn't, it should be safe to add that option to your cflags because it's likely your CPU can handle it just fine.